This commit is contained in:
Wojciech Lidwin 2023-05-11 19:34:01 +02:00
parent 27be8bd48c
commit 2b722a1182
2 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,6 @@
FROM ubuntu:latest FROM ubuntu:latest
RUN apt update && apt install -y figlet RUN apt update && apt install -y figlet
RUN apt install unzip -y
RUN apt install python3-pip -y RUN apt install python3-pip -y
RUN pip3 install kaggle RUN pip3 install kaggle

View File

@ -10,8 +10,7 @@ node {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's487197', url: 'https://git.wmi.amu.edu.pl/s487197/ium_487197']]]) checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's487197', url: 'https://git.wmi.amu.edu.pl/s487197/ium_487197']]])
} }
stage('Dockerfile'){ stage('Dockerfile'){
def testImage = docker.build("ium") def testImage = docker.image('s487197/ium:33')
sh "chmod +x -R ${env.WORKSPACE}"
testImage.inside{ testImage.inside{
copyArtifacts filter: 'baltimore_train.csv', projectName: 's487197-create-dataset' copyArtifacts filter: 'baltimore_train.csv', projectName: 's487197-create-dataset'
sh "python3 ium_train.py" sh "python3 ium_train.py"