diff --git a/Dockerfile b/Dockerfile index 3189bb5..b9af838 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,11 @@ FROM python:3.7 WORKDIR / +ARG KAGGLE_USERNAME +ARG KAGGLE_KEY +ENV KAGGLE_USERNAME=${KAGGLE_USERNAME} +ENV KAGGLE_KEY=${KAGGLE_KEY} + RUN pip install --user kaggle RUN pip install --user pandas RUN pip install --user sklearn @@ -9,10 +14,3 @@ RUN pip install --user sklearn 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 \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 34d147e..e4c9c62 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -43,8 +43,6 @@ pipeline { dockerfile true } steps { - sh 'echo "PREPARATION"' - sh "chmod u+x ./preparation.sh" sh "./preparation.sh" archiveArtifacts 'KaggleV2-May-2016.csv' } @@ -54,12 +52,8 @@ pipeline { dockerfile true } steps { - sh 'echo "STATISTICS"' - sh "chmod u+x ./statistics.sh" sh "./statistics.sh" archiveArtifacts 'statistics.csv' - sh 'docker run --rm ium' - sh "python stats_data.py" } } } diff --git a/preparation.sh b/preparation.sh index f5d3ebf..dfe1747 100644 --- a/preparation.sh +++ b/preparation.sh @@ -1,3 +1 @@ -#!/bin/bash - echo "Preparation inner" \ No newline at end of file