Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/image-apk-upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@hyperdx/api': patch
'@hyperdx/app': patch
---

fix: run `apk upgrade` in the HyperDX image so it picks up Alpine security fixes
(OpenSSL, zlib) released after the Node and ClickHouse base images were built,
and bump Node from 22.23.4 to 22.23.5 in the image and `.nvmrc`.
5 changes: 5 additions & 0 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ jobs:
file: ./docker/hyperdx/Dockerfile
platforms: ${{ matrix.platform }}
target: prod
# CODE_VERSION is constant for nightly, so without this the cached
# `apk upgrade` layer would be reused until the base image moves. Not
# set on the all-in-one builds: that stage also installs mongodb from
# the archived Alpine v3.9 repo, which shouldn't be a daily dependency.
no-cache-filters: prod
build-contexts: |
hyperdx=./docker/hyperdx
api=./packages/api
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.23.4
22.23.5
14 changes: 9 additions & 5 deletions docker/hyperdx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# - Mongo
# - Otel Collector (otelcol)

ARG NODE_VERSION=22.23.4
ARG NODE_VERSION=22.23.5
Comment thread
knudtty marked this conversation as resolved.
Resolved
ARG CLICKHOUSE_VERSION=26.10.3.7
ARG OTEL_COLLECTOR_VERSION=0.165.0
ARG OTEL_COLLECTOR_CORE_VERSION=1.71.0
Expand Down Expand Up @@ -125,8 +125,10 @@ ENV OTEL_RESOURCE_ATTRIBUTES="service.version=$CODE_VERSION"
ENV OTEL_SERVICE_NAME=hdx-oss-app
ENV NODE_ENV=production

# Remove package managers from production image (not needed at runtime)
RUN rm -rf /usr/local/lib/node_modules/npm /usr/local/lib/node_modules/corepack \
# Pick up Alpine security fixes newer than the base image, then remove package
# managers from production image (not needed at runtime)
RUN apk upgrade --no-cache && \
Comment thread
knudtty marked this conversation as resolved.
Resolved
rm -rf /usr/local/lib/node_modules/npm /usr/local/lib/node_modules/corepack \
/usr/local/bin/npm /usr/local/bin/npx /usr/local/bin/corepack \
/usr/local/bin/yarn /usr/local/bin/yarnpkg

Expand Down Expand Up @@ -200,8 +202,10 @@ COPY --from=migrate-builder /migrate /usr/local/bin/migrate

# Install MongoDB and other dependencies (consolidated into a single RUN command).
# libstdc++/libgcc are the Node.js runtime deps, installed before the v3.9
# repositories are appended so they resolve from this image's own Alpine release.
RUN apk add --no-cache libstdc++ libgcc && \
# repositories are appended so they resolve from this image's own Alpine release,
# as does the upgrade that picks up security fixes newer than the base image.
RUN apk upgrade --no-cache && \
apk add --no-cache libstdc++ libgcc && \
echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/main' >> /etc/apk/repositories && \
echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/community' >> /etc/apk/repositories && \
apk update && \
Expand Down
86 changes: 0 additions & 86 deletions packages/api/Dockerfile

This file was deleted.

115 changes: 0 additions & 115 deletions packages/app/Dockerfile

This file was deleted.

Loading