update rum
This commit is contained in:
1 parent
7b68f60202
commit
193e6c6e39
15 files changed
+2760
-1080
No files matched your search
+11
-1
@@ -15,6 +15,15 @@ COPY otel-ui/ .
|
||||
|
||||
RUN npm install && npm run build
|
||||
|
||||
FROM node:24-alpine AS rum-builder
|
||||
|
||||
WORKDIR /app/rum
|
||||
COPY rum/package*.json ./
|
||||
RUN npm ci
|
||||
COPY rum/ ./
|
||||
COPY scripts/otel-rum.test.mjs /app/scripts/otel-rum.test.mjs
|
||||
RUN npm test
|
||||
|
||||
# Go build stage
|
||||
FROM --platform=$BUILDPLATFORM golang:1.27-alpine AS go-builder
|
||||
|
||||
@@ -46,13 +55,14 @@ WORKDIR /home/appuser/
|
||||
COPY --from=go-builder /go-otel .
|
||||
COPY --from=go-builder /app/otel-ui/dist ./dist
|
||||
COPY static/ ./static
|
||||
COPY --from=rum-builder /app/static/ ./static/
|
||||
COPY db/GeoLite2-City.mmdb db/GeoLite2-ASN.mmdb ./db/
|
||||
COPY agents_example.md .
|
||||
COPY instrumentation.md .
|
||||
|
||||
# Private server-side maps are the default. Staging/dev can opt into public
|
||||
# maps for Chrome DevTools with --build-arg PUBLIC_SOURCEMAPS=true.
|
||||
RUN if [ "${PUBLIC_SOURCEMAPS}" != "true" ]; then find ./dist -type f -name '*.map' -delete; fi
|
||||
RUN if [ "${PUBLIC_SOURCEMAPS}" != "true" ]; then find ./dist ./static -type f -name '*.map' -delete; fi
|
||||
|
||||
# Ensure the appuser owns the files
|
||||
RUN chown -R appuser:appgroup /home/appuser/
|
||||
|
||||
Reference in new issue
Block a user