Jenkins + docker fix

This commit is contained in:
Andrzej Preibisz 2022-05-29 15:33:24 +02:00
parent 93fa20b793
commit d7c54f104f
2 changed files with 6 additions and 5 deletions

View File

@ -6,14 +6,15 @@ RUN python3 -m pip install kaggle
RUN python3 -m pip install pandas
RUN python3 -m pip install scikit-learn
RUN python3 -m pip install --upgrade tensorflow
RUN python3 -m pip install dvc
RUN python3 -m pip install dvc[ssh] paramiko
WORKDIR app
ARG EPOCHS
ENV EPOCHS=${EPOCHS}
COPY mlflow_training.py ./
COPY heart_2020_cleaned.csv ./
COPY ml_prepare.py ./
COPY ml_training.py ./
CMD ["python3", "./mlflow_training.py $EPOCHS"]
CMD ["python3", "./ml_training.py $EPOCHS"]

View File

@ -22,7 +22,7 @@ pipeline {
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'
}
}
}
}
}