Skip to content

Commit da4504a

Browse files
authored
Update PHP agent ini paths in Dockerfile
find all versions of the contrast.ini file and update the absolute path to match /contrast for the volume
1 parent 8bb7446 commit da4504a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flex/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ RUN set -xe \
2222
&& /contrast/service/x86_64/contrast-flex-service --comms-parent-dir "/contrast" --agents-parent-dir "/contrast" agents \
2323
&& /contrast/service/x86_64/contrast-flex-service --comms-parent-dir "/contrast" --agents-parent-dir "/contrast" auto-attach set true
2424

25+
# Adjust the absolute path provided in PHP agent ini files
26+
RUN find /usr/bin/contrast-flex-agent/flex-agents/php/*/*/contrast.ini -type f -exec sed -i 's|/usr/bin/contrast-flex-agent/|/contrast/|g' {} \;
27+
2528
FROM --platform=linux/amd64 busybox:stable AS final-amd64
2629
RUN set -xe \
2730
&& addgroup -g 1001 custom-group \

0 commit comments

Comments
 (0)