zadanie doker

This commit is contained in:
szymonj98 2022-04-03 14:30:27 +02:00
parent e319549980
commit 03aa566ce0
2 changed files with 12 additions and 6 deletions

View File

@ -4,4 +4,11 @@ FROM python:3.9
RUN pip install --user kaggle
RUN pip install --user pandas
ADD . .
ARG KAGGLE_USERNAME
ARG KAGGLE_KEY
RUN chmod a+x *.sh
RUN ./download_dataset.sh
CMD python kagle.py

11
Jenkinsfile vendored
View File

@ -11,13 +11,12 @@ pipeline {
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
string(
defaultValue: '',
description: 'Value for head command',
name: 'CUTOFF'
)
}
agent { dockerfile true}
agent {
dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} -t s444386-create-dataset"
}
}
environment {
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
KAGGLE_KEY="$params.KAGGLE_KEY"