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 FROM python:3.7
ARG KAGGLE_USERNAME
ARG KAGGLE_KEY
WORKDIR / WORKDIR /
RUN pip install --user kaggle RUN pip install --user kaggle
@ -13,11 +17,3 @@ COPY KaggleV2-May-2016.csv ./
COPY create_data.py ./ COPY create_data.py ./
COPY stats_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

1
Jenkinsfile vendored
View File

@ -37,6 +37,7 @@ pipeline {
agent { agent {
dockerfile { dockerfile {
additionalBuildArgs '-t ium' additionalBuildArgs '-t ium'
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}'
} }
} }
steps { steps {

View File

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