Commit 560140b7 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Allow scripts to be run as root (needed to be able to change 'store' folder permissions).

parent 2631c099
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -22,10 +22,12 @@ RUN dnf -y install python3-pika python3-redis nano
RUN dnf install -y xrootd-client xrootd-client-devel xrootd python3-xrootd

# Run commands as transfer_service user
USER transfer_service
#USER transfer_service

# Create a 'store' directory with a file
RUN mkdir /home/transfer_service/store && touch /home/transfer_service/store/foo.txt
RUN mkdir /home/transfer_service/store && touch /home/transfer_service/store/foo.txt && \
    chown -R transfer_service:transfer_service /home/transfer_service/store && \
    chmod -R 755 /home/transfer_service/store

# Run a shell
CMD /bin/bash