-
Notifications
You must be signed in to change notification settings - Fork 145
run CI for #8100 #8101
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
run CI for #8100 #8101
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| 'hive': patch | ||
| --- | ||
|
|
||
| Apply OS security updates to the base image at build time by adding `apt-get upgrade` to the service, migrations, and CLI Dockerfiles. Previously these only ran `apt-get update` followed by `apt-get install` of a few specific packages, so Debian security patches inherited from the pinned `node:*-slim` base were never applied — leaving published images with known-fixed CVEs. Bumping the base image tag alone does not fix this, since the latest `node` tag can still lag behind Debian's security updates. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| FROM node:24.14.1-slim | ||
|
|
||
| RUN apt-get update && apt-get install -y ca-certificates | ||
| RUN apt-get update && apt-get upgrade -y --no-install-recommends && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/* | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Running |
||
|
|
||
| WORKDIR /usr/src/app | ||
|
|
||
|
|
@@ -9,12 +9,12 @@ | |
|
|
||
| ENV ENVIRONMENT=production | ||
| ENV NODE_ENV=production | ||
| ENV RELEASE=$RELEASE | ||
|
Check warning on line 12 in docker/migrations.dockerfile
|
||
|
|
||
| LABEL org.opencontainers.image.licenses=MIT | ||
| LABEL org.opencontainers.image.title=$IMAGE_TITLE | ||
|
Check warning on line 15 in docker/migrations.dockerfile
|
||
| LABEL org.opencontainers.image.version=$RELEASE | ||
| LABEL org.opencontainers.image.description=$IMAGE_DESCRIPTION | ||
|
Check warning on line 17 in docker/migrations.dockerfile
|
||
| LABEL org.opencontainers.image.authors="The Guild" | ||
| LABEL org.opencontainers.image.vendor="Kamil Kisiela" | ||
| LABEL org.opencontainers.image.url="https://github.com/graphql-hive/platform" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| FROM node:24.14.1-slim | ||
|
|
||
| RUN apt-get update && apt-get install -y wget ca-certificates && rm -rf /var/lib/apt/lists/* | ||
| RUN apt-get update && apt-get upgrade -y --no-install-recommends && apt-get install -y --no-install-recommends wget ca-certificates && rm -rf /var/lib/apt/lists/* | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Running |
||
|
|
||
| ARG SERVICE_DIR_NAME | ||
| WORKDIR /usr/src/app/$SERVICE_DIR_NAME | ||
|
|
@@ -9,17 +9,17 @@ | |
| COPY --from=shared . / | ||
|
|
||
| LABEL org.opencontainers.image.licenses=MIT | ||
| LABEL org.opencontainers.image.title=$IMAGE_TITLE | ||
|
Check warning on line 12 in docker/services.dockerfile
|
||
| LABEL org.opencontainers.image.version=$RELEASE | ||
|
Check warning on line 13 in docker/services.dockerfile
|
||
| LABEL org.opencontainers.image.description=$IMAGE_DESCRIPTION | ||
|
Check warning on line 14 in docker/services.dockerfile
|
||
| LABEL org.opencontainers.image.authors="The Guild" | ||
| LABEL org.opencontainers.image.vendor="Kamil Kisiela" | ||
| LABEL org.opencontainers.image.url="https://github.com/graphql-hive/platform" | ||
| LABEL org.opencontainers.image.source="https://github.com/graphql-hive/platform" | ||
|
|
||
| ENV ENVIRONMENT=production | ||
| ENV RELEASE=$RELEASE | ||
|
Check warning on line 21 in docker/services.dockerfile
|
||
| ENV PORT=$PORT | ||
|
Check warning on line 22 in docker/services.dockerfile
|
||
|
|
||
| HEALTHCHECK --interval=5s \ | ||
| --timeout=5s \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running
apt-get upgradecan sometimes trigger interactive prompts (e.g., for configuration choices or service restarts), which can cause the Docker build to hang or fail in non-interactive environments like CI. PrependDEBIAN_FRONTEND=noninteractiveto ensure the commands run without prompting.