update dockerfile and add dvc.yaml, jenkinsfile_dvc
This commit is contained in:
parent
ea35c610b6
commit
b735799bd1
1
.gitignore
vendored
1
.gitignore
vendored
@ -150,3 +150,4 @@ crashlytics.properties
|
|||||||
crashlytics-build.properties
|
crashlytics-build.properties
|
||||||
fabric.properties
|
fabric.properties
|
||||||
|
|
||||||
|
/games_model.pkl
|
||||||
|
@ -42,4 +42,9 @@ COPY registry.py .
|
|||||||
COPY Biblioteka_DL/all_games.csv .
|
COPY Biblioteka_DL/all_games.csv .
|
||||||
|
|
||||||
RUN ./download.sh $CUTOFF
|
RUN ./download.sh $CUTOFF
|
||||||
|
|
||||||
|
RUN pip3 install dvc
|
||||||
|
RUN pip3 install dvc[ssh] paramiko
|
||||||
|
RUN apt install -y sshpass openssh-client
|
||||||
|
RUN useradd -r -u 111 jenkins
|
||||||
#CMD ["python3", "./dllib.py"]
|
#CMD ["python3", "./dllib.py"]
|
||||||
|
31
Jenkinsfile_dvc
Normal file
31
Jenkinsfile_dvc
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'maciejczajka'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
parameters {
|
||||||
|
buildSelector(
|
||||||
|
defaultSelector: lastSuccessful(),
|
||||||
|
description: 'Which build to use for copying artifacts for predict',
|
||||||
|
name: 'BUILD_SELECTOR')
|
||||||
|
string(
|
||||||
|
defaultValue: '{\\"inputs\\": [900.0]}',
|
||||||
|
description: 'Input file',
|
||||||
|
name: 'INPUT',
|
||||||
|
trim: true
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage("DVC"){
|
||||||
|
sh 'git clone https://git.wmi.amu.edu.pl/s444356/ium_s444356.git'
|
||||||
|
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
|
||||||
|
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
|
||||||
|
sh 'dvc pull'
|
||||||
|
sh 'dvc repro'
|
||||||
|
sh 'ls -al'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user