This commit is contained in:
ulaniuk 2022-04-03 21:44:40 +02:00
parent a0fbead1a5
commit 202583a852
3 changed files with 9 additions and 11 deletions

View File

@ -1,5 +1,9 @@
FROM python:3.7
ARG KAGGLE_USERNAME
ARG KAGGLE_KEY
WORKDIR /
RUN pip install --user kaggle
@ -12,12 +16,4 @@ COPY KaggleV2-May-2016.csv ./
COPY create_data.py ./
COPY stats_data.py ./
CMD ["python", "./create_data.py"]
CMD ["python", "./stats_data.py"]
# RUN kaggle datasets download -d joniarroba/noshowappointments
# RUN unzip -o noshowappointments.zip
COPY stats_data.py ./

3
Jenkinsfile vendored
View File

@ -36,7 +36,8 @@ pipeline {
stage("Dara Preparation") {
agent {
dockerfile {
additionalBuildArgs '-t ium'
additionalBuildArgs '-t ium'
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}'
}
}
steps {

View File

@ -1,3 +1,4 @@
echo "Preparation inner"
kaggle datasets download -d joniarroba/noshowappointments
!unzip -o noshowappointments.zip
!unzip -o noshowappointments.zip
KaggleV2-May-2016.csv >> data.csv