From f8b18805758b91bb5e2f81d0042790b2036bd240 Mon Sep 17 00:00:00 2001 From: ppippi-dev <61408680+ppippi-dev@users.noreply.github.com> Date: Tue, 30 Dec 2025 16:06:28 +0900 Subject: [PATCH] fix(docker): resolve @sim/logger module not found in realtime container (#2637) --- docker/realtime.Dockerfile | 5 +++-- helm/sim/templates/networkpolicy.yaml | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docker/realtime.Dockerfile b/docker/realtime.Dockerfile index d5ebaffec..01994521e 100644 --- a/docker/realtime.Dockerfile +++ b/docker/realtime.Dockerfile @@ -18,9 +18,10 @@ COPY packages/testing/package.json ./packages/testing/package.json COPY packages/logger/package.json ./packages/logger/package.json COPY packages/tsconfig/package.json ./packages/tsconfig/package.json -# Install dependencies with cache mount for faster builds +# Install dependencies with hoisted layout for Docker compatibility +# Using --linker=hoisted to avoid .bun directory symlinks that don't copy between stages RUN --mount=type=cache,id=bun-cache,target=/root/.bun/install/cache \ - bun install --omit=dev --ignore-scripts + bun install --omit=dev --ignore-scripts --linker=hoisted # ======================================== # Builder Stage: Prepare source code diff --git a/helm/sim/templates/networkpolicy.yaml b/helm/sim/templates/networkpolicy.yaml index deac5a5db..7ef869741 100644 --- a/helm/sim/templates/networkpolicy.yaml +++ b/helm/sim/templates/networkpolicy.yaml @@ -141,6 +141,10 @@ spec: ports: - protocol: TCP port: 443 + # Allow custom egress rules + {{- with .Values.networkPolicy.egress }} + {{- toYaml . | nindent 2 }} + {{- end }} {{- end }} {{- if .Values.postgresql.enabled }}