This commit is contained in:
ulaniuk 2022-04-03 22:32:52 +02:00
parent d10b87b976
commit cf41e29ce6
3 changed files with 5 additions and 15 deletions

View File

@ -2,6 +2,11 @@ FROM python:3.7
WORKDIR / 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 kaggle
RUN pip install --user pandas RUN pip install --user pandas
RUN pip install --user sklearn RUN pip install --user sklearn
@ -9,10 +14,3 @@ RUN pip install --user sklearn
COPY KaggleV2-May-2016.csv ./ 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

6
Jenkinsfile vendored
View File

@ -43,8 +43,6 @@ pipeline {
dockerfile true dockerfile true
} }
steps { steps {
sh 'echo "PREPARATION"'
sh "chmod u+x ./preparation.sh"
sh "./preparation.sh" sh "./preparation.sh"
archiveArtifacts 'KaggleV2-May-2016.csv' archiveArtifacts 'KaggleV2-May-2016.csv'
} }
@ -54,12 +52,8 @@ pipeline {
dockerfile true dockerfile true
} }
steps { steps {
sh 'echo "STATISTICS"'
sh "chmod u+x ./statistics.sh"
sh "./statistics.sh" sh "./statistics.sh"
archiveArtifacts 'statistics.csv' archiveArtifacts 'statistics.csv'
sh 'docker run --rm ium'
sh "python stats_data.py"
} }
} }
} }

View File

@ -1,3 +1 @@
#!/bin/bash
echo "Preparation inner" echo "Preparation inner"