Skip to content

Commit 87ccb37

Browse files
Replace tmp by cache to reflect the directory usage
Signed-off-by: GuillaumeBourque-QC <[email protected]>
1 parent fbfd590 commit 87ccb37

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fetch-validator-status/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,13 +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/tmp \
48+
$HOME/cache \
4949
$(python -m site --user-site)
5050

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

5757
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()}/tmp/"
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)