Skip to content

Commit 171a648

Browse files
committed
fix: sentry controlplane auto-instrumentation
1 parent ed30b74 commit 171a648

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

controlplane/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ COPY --from=builder /app/pruned .
4343

4444
COPY --from=builder /usr/local/bin/dbmate /usr/local/bin/dbmate
4545

46-
COPY ./controlplane/src/bin/docker-entrypoint.sh /usr/local/bin/
46+
COPY ./controlplane/docker/docker-entrypoint.sh /usr/local/bin/
4747
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
48-
RUN chmod +x /app/src/bin/patch-sentry.sh
48+
COPY ./controlplane/docker/patch-sentry.sh /usr/local/bin/
49+
RUN chmod +x /usr/local/bin/patch-sentry.sh
4950
ENV SENTRY_ENABLED=false
5051
ENTRYPOINT ["docker-entrypoint.sh"]
5152

controlplane/src/bin/docker-entrypoint.sh renamed to controlplane/docker/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ echo "[!] Starting container with SENTRY_ENABLED=${SENTRY_ENABLED:-false}"
77
# Conditionally apply the patch
88
if [ "${SENTRY_ENABLED}" = "true" ]; then
99
echo "[!] Applying Sentry patch."
10-
/app/src/bin/patch-sentry.sh /app/dist/index.js
10+
patch-sentry.sh /app/dist/index.js
1111
else
1212
echo "[X] Skipping Sentry patch."
1313
fi
File renamed without changes.

0 commit comments

Comments
 (0)