zadanie doker
This commit is contained in:
parent
e319549980
commit
03aa566ce0
@ -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
11
Jenkinsfile
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user