diff --git a/jobs/refresh-db/templates/job.yaml b/jobs/refresh-db/templates/job.yaml index 378b225..032fd79 100644 --- a/jobs/refresh-db/templates/job.yaml +++ b/jobs/refresh-db/templates/job.yaml @@ -59,6 +59,8 @@ spec: command: - /bin/entrypoint.sh env: + - name: HOME + value: "/home/job" - name: SRC_DB_NAME valueFrom: secretKeyRef: diff --git a/tools/db-utils/Dockerfile b/tools/db-utils/Dockerfile index 7797279..5ac167a 100644 --- a/tools/db-utils/Dockerfile +++ b/tools/db-utils/Dockerfile @@ -9,8 +9,5 @@ RUN apt-get install -y jq # Create a non-root user and set the home directory RUN useradd -u 999 -ms /bin/bash job -RUN mkdir /job -RUN chown -R job:job /job/ USER job - -WORKDIR /job +WORKDIR /home/job