Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release download #504

Merged
merged 6 commits into from
Jan 7, 2025
Merged

Fix release download #504

merged 6 commits into from
Jan 7, 2025

Conversation

lukehinds
Copy link
Contributor

Tested as below:

=> [webbuilder  5/11] RUN curl -s https://api.github.com/repos/stacklok/codegate-ui/releases/latest | jq -r '.zipball_url' | xargs curl -L -o main.zip     1.0s
 => CACHED [builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends     gcc     g++     && rm -rf /var/lib/apt/lists/*                0.0s
 => CACHED [builder 3/7] RUN pip install poetry==1.8.4 && rm -rf /root/.cache/pip                                                                           0.0s
 => CACHED [builder 4/7] WORKDIR /app                                                                                                                       0.0s
 => CACHED [builder 5/7] COPY pyproject.toml poetry.lock* /app/                                                                                             0.0s
 => CACHED [builder 6/7] RUN poetry config virtualenvs.create false &&     poetry install --no-dev                                                          0.0s
 => [builder 7/7] COPY . /app                                                                                                                               3.3s
 => [webbuilder  6/11] RUN unzip main.zip                                                                                                                   0.4s
 => [webbuilder  7/11] RUN rm main.zip                                                                                                                      0.2s 
 => [webbuilder  8/11] RUN mv *codegate-ui* webapp                                                                                                          0.4s 
 => [webbuilder  9/11] WORKDIR /usr/src/webapp                                                                                                              0.0s 
 => [webbuilder 10/11] RUN npm install                                                                                                                      5.8s 
 => CACHED [runtime  2/12] RUN apt-get update && apt-get install -y --no-install-recommends     libgomp1     nginx     && rm -rf /var/lib/apt/lists/*       0.0s 
 => CACHED [runtime  3/12] RUN useradd -m -u 1000 -r codegate                                                                                               0.0s 
 => CACHED [runtime  4/12] RUN chown -R codegate /var/lib/nginx &&     chown -R codegate /var/log/nginx &&     chown -R codegate /run                       0.0s
 => CACHED [runtime  5/12] COPY nginx.conf /etc/nginx/conf.d/default.conf                                                                                   0.0s
 => CACHED [runtime  6/12] WORKDIR /app                                                                                                                     0.0s
 => CACHED [runtime  7/12] COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages                              0.0s
 => [runtime  8/12] COPY --from=builder /app /app                                                                                                           1.9s
 => [webbuilder 11/11] RUN npm run build                                                                                                                    6.8s
 => [runtime  9/12] COPY --from=webbuilder /usr/src/webapp/dist /var/www/html                                                                               0.0s
 => [runtime 10/12] RUN mkdir -p /app/default_models && cp /app/codegate_volume/models/* /app/default_models/                                               0.2s
 => [runtime 11/12] RUN mkdir -p /app/codegate_volume/db                                                                                                    0.1s
 => [runtime 12/12] RUN chown -R codegate /app/codegate_volume                                                                                              0.3s
 => exporting to image                                                                                                                                      1.2s
 => => exporting layers                                                                                                                                     1.2s
 => => writing image sha256:90c843e4390c8f0aa96fd7652f2cb19fe9f8dea6194597c0d9904501349852b4                                                                0.0s
 => => naming to docker.io/stacklok/codegate-cg                         

@lukehinds lukehinds merged commit b91cb8d into main Jan 7, 2025
3 checks passed
@lukehinds lukehinds deleted the fix-image branch January 7, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants