Skip to content

Commit ec32ff5

Browse files
authored
Merge pull request #75 from GuillaumeBourque-QC/add-tmp-dir
Add a tmp directory
2 parents 722876b + 87ccb37 commit ec32ff5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

fetch-validator-status/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ RUN usermod -a -G root $user
4545
# Note: PIP_NO_CACHE_DIR environment variable should be cleared to allow caching
4646
RUN mkdir -p \
4747
$HOME/log \
48+
$HOME/cache \
4849
$(python -m site --user-site)
4950

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

5657
USER $user

fetch-validator-status/networks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_NetworkEnum() -> NetworkEnum:
5959

6060
def resolve(self, network_id: str = None, genesis_url: str = None, genesis_path: str = None):
6161
network_name = None
62-
genesis_path_base = f"{self.__get_script_dir()}/"
62+
genesis_path_base = f"{self.__get_script_dir()}/cache/"
6363

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

0 commit comments

Comments
 (0)