diff --git a/Dockerfile b/Dockerfile index 73c4dc7..63e6e06 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,14 +8,15 @@ WORKDIR /app COPY ./requirements.txt . RUN pip3 install -r ./requirements.txt RUN pip3 install kaggle -# Skopiujmy nasz skrypt do katalogu /app w kontenerze -COPY ./process_data.sh ./ -COPY ./download_data_and_process.py ./ -COPY ./stats.py ./ - ARG CUTOFF ARG KAGGLE_USERNAME ARG KAGGLE_KEY ENV CUTOFF=${CUTOFF} ENV KAGGLE_USERNAME=${KAGGLE_USERNAME} -ENV KAGGLE_KEY=${KAGGLE_KEY} \ No newline at end of file +ENV KAGGLE_KEY=${KAGGLE_KEY} +# Skopiujmy nasz skrypt do katalogu /app w kontenerze +COPY ./process_data.sh ./ +COPY ./download_data_and_process.py ./ +COPY ./stats.py ./ + +RUN ./process_data.sh diff --git a/Jenkinsfile b/Jenkinsfile index f9d389a..e459751 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,8 +34,8 @@ pipeline { withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) { - sh './process_data.sh' - // sh 'python3 ./download_data_and_process.py' + // sh './process_data.sh' + sh 'python3 ./download_data_and_process.py' archiveArtifacts artifacts: "data_test.csv, data_dev.csv, data_train.csv, column_titles.csv" } }