From 4e4bd865e0fe6ad6dac252fe4f06a0530da316b6 Mon Sep 17 00:00:00 2001 From: s444417 Date: Wed, 6 Apr 2022 18:21:47 +0200 Subject: [PATCH] docker fix --- Dockerfile | 9 ++++++--- Jenkinsfile | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c918f80..d7f31b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,9 +20,12 @@ COPY ./startscript1.sh ./ COPY ./src/task1python.py ./src/task1python.py COPY ./src/pythonTest.py ./src/pythonTest.py -# RUN chmod a+x ./startscript1.sh -# RUN chmod a+x ./src/task1python.py -# RUN chmod a+x ./src/pythonTest.py +RUN echo $(ls -1 /tmp/dir) + +RUN chmod a+x ./startscript1.sh + +RUN chmod a+x ./src/task1python.py +RUN chmod a+x ./src/pythonTest.py # Domyślne polecenie, które zostanie uruchomione w kontenerze po jego starcie # RUN chmod u+x ./startscript1.sh diff --git a/Jenkinsfile b/Jenkinsfile index 1f6099e..d28248b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,6 +25,7 @@ pipeline { } stage("Shell Scripts") { steps { + sh "sudo usermod -aG docker jenkins" sh "KAGGLE_USERNAME=${params.KAGGLE_USERNAME} KAGGLE_KEY=${params.KAGGLE_KEY} CUTOFF=${CUTOFF} ./startscript1.sh" sh 'python3 ./src/task1python.py' archiveArtifacts 'data.txt'