From 01b5a10b434cddeb60e764199390d8c440176ead Mon Sep 17 00:00:00 2001 From: Maciej Czajka Date: Sat, 2 Apr 2022 13:16:22 +0200 Subject: [PATCH] update jenkinsfile and dockerfile --- Dockerfile | 7 ++++--- Jenkinsfile_docker | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4803f36..10e5977 100755 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ RUN apt-get install unzip RUN mkdir root/.kaggle RUN touch root/.kaggle/kaggle.json RUN echo "{\"username\":\"maciejczajka\",\"key\":\"d8f044ad2b96d32372e22f9054c02bb1\"}" >> root/.kaggle/kaggle.json +RUN chmod 666 /.kaggle RUN chmod 666 root/.kaggle/kaggle.json WORKDIR /app @@ -21,7 +22,7 @@ ENV CUTOFF=1000 COPY download.sh . COPY Zajecia_2/main.py . -RUN chmod 666 /.kaggle RUN ls -al /root/.kaggle/kaggle.json -RUN ./download.sh -CMD ["python3", "./main.py"] +RUN whoami +#RUN ./download.sh +#CMD ["python3", "./main.py"] diff --git a/Jenkinsfile_docker b/Jenkinsfile_docker index 839a2e2..2505eda 100644 --- a/Jenkinsfile_docker +++ b/Jenkinsfile_docker @@ -5,6 +5,7 @@ agent { stages { stage('Test') { steps { + sh 'whoami' sh './download.sh' sh 'python3 ./Zajecia_2/main.py' }