Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions mithril-infra/assets/docker/Dockerfile.cardano
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ ARG CARDANO_IMAGE_REGISTRY
FROM $CARDANO_IMAGE_REGISTRY:$CARDANO_IMAGE_ID

# Fix env file rights
# In order to be able to interact with the Cardano node trough its 'node.socket'
# In order to be able to interact with the Cardano node through its 'node.socket'
# The node must be run with 'curry' unprivileged user
# The following modifications allow the node to run with such a user
RUN touch /usr/local/bin/env
RUN chmod a+w /usr/local/bin/env
# Since Cardano node '11.1.0', the env file is a symlink to a runtime directory
# created by the entrypoint under '/tmp' and needs no rights fix
RUN if [ ! -L /usr/local/bin/env ]; then \
touch /usr/local/bin/env && chmod a+w /usr/local/bin/env; \
fi

# If the Cardano node has already been launched with root user,
# you migt have to run manually this command as 'root' user to update ownership of some folders
# chown -R curry /home/curry/ipc /home/curry/testnet
# chown -R curry /home/curry/ipc /home/curry/testnet
Loading