Jenkins with docker

This commit is contained in:
Mikołaj Pokrywka 2022-04-02 14:51:28 +02:00
parent 112702b39b
commit b1bd4aeee9
2 changed files with 5 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -1,5 +1,7 @@
pipeline {
agent any
agent {
dockerfile true
}
parameters {
string (
defaultValue: 'mikolajpokrywka',
@ -30,7 +32,7 @@ pipeline {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}",
"CUTOFF=${params.CUTOFF}"]) {
sh "./process_data.sh"
// sh "./process_data.sh"
archiveArtifacts artifacts: "data_test.csv, data_dev.csv, data_train.csv"
}
}

View File

@ -1,4 +1,4 @@
# Run with docker
`docker build -t ium .`
`docker run -i -e KAGGLE_USERNAME='your_kaggle_username' -e KAGGLE_KEY='<your_kaggle_key>' -i ium:latest`
`docker run -e KAGGLE_USERNAME='your_kaggle_username' -e KAGGLE_KEY='<your_kaggle_key>' -i ium:latest`