Skip to content

Commit 0680dcd

Browse files
abaillyAnviking
authored andcommitted
fix: set owner of shared file
1 parent cadde42 commit 0680dcd

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

compose/Dockerfile.tracer.source

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,5 +171,6 @@ RUN groupadd --gid 10000 cardano && \
171171
#STOPSIGNAL SIGINT
172172

173173
COPY tracer-config.yaml .
174+
COPY run-tracer.sh .
174175

175-
ENTRYPOINT ["/usr/local/bin/cardano-tracer"]
176+
ENTRYPOINT ["/run-tracer.sh"]

compose/run-tracer.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
# this script is meant to be run by root and
3+
# in order to adjust permissions for mounted folder,
4+
# then switch to user cardano for running tracer
5+
6+
chown -R cardano /opt/cardano-tracer
7+
8+
runuser -u cardano -- /usr/local/bin/cardano-tracer $@

0 commit comments

Comments
 (0)