This commit is contained in:
Alicja Szulecka 2024-04-02 15:23:13 +02:00
parent 6fd3488b5c
commit 82c588153c
2 changed files with 2 additions and 10 deletions

View File

@ -1,22 +1,14 @@
FROM ubuntu:latest
# Dockerfile
ARG KAGGLE_USERNAME
ARG KAGGLE_KEY
RUN apt update && apt install -y python3-pip
RUN apt install unzip
RUN apt install bc
RUN pip3 install kaggle
RUN pip install kaggle
RUN pip install --user pandas
RUN pip install --user scikit-learn
RUN pip install --user matplotlib
RUN pip install --user geopandas
RUN echo ${KAGGLE_KEY}
WORKDIR /app
COPY ./get_dataset.sh ./
RUN chmod +x ./get_dataset.sh

2
Jenkinsfile vendored
View File

@ -16,7 +16,7 @@ pipeline {
script {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
def customImage = docker.build("custom-image", "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} .")
def customImage = docker.build("custom-image")
customImage.inside {
sh 'bash ./get_dataset.sh $CUTOFF'
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true