Skip to content

Commit

Permalink
Merge pull request #75 from GuillaumeBourque-QC/add-tmp-dir
Browse files Browse the repository at this point in the history
Add a tmp directory
WadeBarnes authored Sep 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 722876b + 87ccb37 commit ec32ff5
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fetch-validator-status/Dockerfile
Original file line number Diff line number Diff line change
@@ -45,12 +45,13 @@ RUN usermod -a -G root $user
# Note: PIP_NO_CACHE_DIR environment variable should be cleared to allow caching
RUN mkdir -p \
$HOME/log \
$HOME/cache \
$(python -m site --user-site)

# The root group needs access the directories under $HOME for the container to function in OpenShift.
# Also ensure the permissions on the python 'site-packages' folder are set correctly.
RUN chown -R $user:root $HOME && \
chmod -R ug+rw $HOME $HOME/log && \
chmod -R ug+rw $HOME $HOME/log $HOME/cache && \
chmod +rx $(python -m site --user-site)

USER $user
2 changes: 1 addition & 1 deletion fetch-validator-status/networks.py
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ def get_NetworkEnum() -> NetworkEnum:

def resolve(self, network_id: str = None, genesis_url: str = None, genesis_path: str = None):
network_name = None
genesis_path_base = f"{self.__get_script_dir()}/"
genesis_path_base = f"{self.__get_script_dir()}/cache/"

if network_id and network_id in self.ids:
log("Connecting to '{0}' ...".format(self.networks[network_id]["name"]))

0 comments on commit ec32ff5

Please sign in to comment.