This commit is contained in:
parent
2f78b3d264
commit
93516ec2ef
10
Dockerfile
10
Dockerfile
@ -20,13 +20,3 @@ RUN pip3 install --user GitPython
|
|||||||
RUN pip3 install --user pymongo
|
RUN pip3 install --user pymongo
|
||||||
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY ./train.py ./
|
|
||||||
COPY ./evaluate.py ./
|
|
||||||
COPY ./sacred1.py ./
|
|
||||||
COPY ./sacred2.py ./
|
|
||||||
COPY ./skrypt.sh ./
|
|
||||||
COPY ./zadanie2.py ./
|
|
||||||
COPY ./zadanie5.py ./
|
|
||||||
|
|
||||||
|
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@ -1,5 +1,5 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {docker { image 'shroomy/ium2:2'}}
|
agent any;
|
||||||
|
|
||||||
parameters{
|
parameters{
|
||||||
buildSelector(
|
buildSelector(
|
||||||
@ -27,12 +27,14 @@ pipeline {
|
|||||||
copyArtifacts(fingerprintArtifacts: true, projectName: 's434695-create-dataset', selector: buildParameter('WHICH_BUILD'))
|
copyArtifacts(fingerprintArtifacts: true, projectName: 's434695-create-dataset', selector: buildParameter('WHICH_BUILD'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('train')
|
stage('docker-training') {
|
||||||
{
|
steps {
|
||||||
steps
|
script {
|
||||||
{
|
def img = docker.build('shroomy/ium2:2')
|
||||||
catchError {
|
img.inside {
|
||||||
sh 'python3 train.py ${BATCH_SIZE} ${EPOCHS}'
|
sh "python3 train.py ${EPOCHS} ${BATCH_SIZE}"
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user