Jenkinsfile dvc
This commit is contained in:
parent
c7a114129d
commit
8d31a88ae1
32
Dockerfile
32
Dockerfile
@ -1,24 +1,20 @@
|
|||||||
# Nasz obraz będzie dzidziczył z obrazu Ubuntu w wersji latest
|
# Nasz obraz będzie dzidziczył z obrazu Ubuntu w wersji latest
|
||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
|
||||||
# Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes)
|
# Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes)
|
||||||
RUN apt update && apt install -y figlet
|
RUN apt update && apt install -y figlet
|
||||||
RUN apt install -y git
|
RUN apt install -y git
|
||||||
RUN apt install -y python3-pip
|
RUN apt install -y python3-pip
|
||||||
RUN pip3 install --user kaggle
|
RUN pip3 install setuptools
|
||||||
RUN pip3 install --user pandas
|
RUN pip3 install kaggle
|
||||||
RUN pip3 install --user numpy
|
RUN pip3 install pandas
|
||||||
RUN pip3 install --user seaborn
|
RUN pip3 install numpy
|
||||||
RUN pip3 install --user sklearn
|
RUN pip3 install seaborn
|
||||||
RUN pip3 install --user matplotlib
|
RUN pip3 install sklearn
|
||||||
RUN pip3 install --user tensorflow
|
RUN pip3 install matplotlib
|
||||||
RUN pip3 install --user wget
|
RUN pip3 install tensorflow
|
||||||
|
RUN pip3 install sacred
|
||||||
WORKDIR /app
|
RUN pip3 install wget
|
||||||
|
RUN pip3 install keras
|
||||||
COPY ./skrypt.sh ./
|
RUN pip3 install GitPython
|
||||||
COPY ./zadanie2.py ./
|
RUN pip3 install pymongo
|
||||||
COPY ./zadanie5.py ./
|
RUN pip3 install mlflow
|
||||||
|
|
||||||
CMD ./zadanie2.py
|
|
||||||
CMD ./zadanie5.py
|
|
23
Jenkinsfile_DVC
Normal file
23
Jenkinsfile_DVC
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
pipeline {
|
||||||
|
agent { dockerfile true }
|
||||||
|
stages {
|
||||||
|
stage('Test') {
|
||||||
|
steps {
|
||||||
|
sh 'dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp'
|
||||||
|
sh 'dvc remote list'
|
||||||
|
sh 'dvc remote modify --local ium_ssh_remote password IUM@2021'
|
||||||
|
sh 'dvc pull'
|
||||||
|
sh "dvc reproduce"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
post {
|
||||||
|
success {
|
||||||
|
archiveArtifacts 'sample.txt'
|
||||||
|
|
||||||
|
mail body: 'SUCCESS',
|
||||||
|
subject: 's434695 DVC',
|
||||||
|
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user