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
|
||||
|
||||
|
||||
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 {
|
||||
agent {docker { image 'shroomy/ium2:2'}}
|
||||
agent any;
|
||||
|
||||
parameters{
|
||||
buildSelector(
|
||||
@ -27,12 +27,14 @@ pipeline {
|
||||
copyArtifacts(fingerprintArtifacts: true, projectName: 's434695-create-dataset', selector: buildParameter('WHICH_BUILD'))
|
||||
}
|
||||
}
|
||||
stage('train')
|
||||
{
|
||||
steps
|
||||
{
|
||||
catchError {
|
||||
sh 'python3 train.py ${BATCH_SIZE} ${EPOCHS}'
|
||||
stage('docker-training') {
|
||||
steps {
|
||||
script {
|
||||
def img = docker.build('shroomy/ium2:2')
|
||||
img.inside {
|
||||
sh "python3 train.py ${EPOCHS} ${BATCH_SIZE}"
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user