Skip to content

Commit a90b629

Browse files
committed
chore(egress): symlink /egress to new binary path for backward compatibility
PR #951 moved the egress binary from /egress to /opt/opensandbox-egress/egress so the supervisor and binary could share a single grouped directory. External tooling and older deployment manifests may still reference the old /egress path; add a symlink so both paths resolve to the same binary. Symlink rather than COPY: zero extra image size, single source of truth for chmod and replacement, and `exec /egress` resolves to the supervisor-managed binary like before.
1 parent 8f1e7ae commit a90b629

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

components/egress/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ COPY --from=builder /out/opensandbox-supervisor /opt/opensandbox-egress/supervis
131131
COPY components/egress/scripts/cleanup.sh /opt/opensandbox-egress/cleanup.sh
132132
RUN chmod 0755 /opt/opensandbox-egress/cleanup.sh \
133133
/opt/opensandbox-egress/egress \
134-
/opt/opensandbox-egress/supervisor
134+
/opt/opensandbox-egress/supervisor \
135+
&& ln -s /opt/opensandbox-egress/egress /egress
135136

136137
COPY components/egress/mitmscripts /var/egress/mitmscripts
137138

0 commit comments

Comments
 (0)