This commit is contained in:
Mikołaj Pokrywka 2022-04-03 15:27:33 +02:00
parent 3d86a29138
commit 343a5fc1b0
2 changed files with 9 additions and 8 deletions

View File

@ -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}
# 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

4
Jenkinsfile vendored
View File

@ -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"
}
}