diff --git a/Dockerfile b/Dockerfile index e9bd39e..976e93a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,10 @@ RUN pip3 install kaggle RUN pip3 install torch RUN pip3 install mlflow +RUN pip3 install dvc +RUN pip3 install dvc[ssh] +RUN useradd -r -u 777 jenkins +RUN apt install -y sshpass openssh-client RUN mkdir /.kaggle && chmod o+w /.kaggle @@ -31,7 +35,3 @@ ENV KAGGLE_KEY=${KAGGLE_KEY} # CMD ./ium-data.py -RUN pip3 install dvc -RUN pip3 install dvc[ssh] -RUN useradd -r -u 777 jenkins -RUN apt install -y sshpass openssh-client \ No newline at end of file diff --git a/dvc.Jenkinsfile b/dvc.Jenkinsfile index 543520f..6e48e46 100644 --- a/dvc.Jenkinsfile +++ b/dvc.Jenkinsfile @@ -13,7 +13,7 @@ pipeline { stage('DVC') { steps { - withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: 'USER')]) { + withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) { //sh 'dvc remote add -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp' sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY' sh 'dvc pull'