From 82c588153cc622c3cd462f9e8cb13d1cec897d76 Mon Sep 17 00:00:00 2001 From: Alicja Szulecka <73056579+AliSzu@users.noreply.github.com> Date: Tue, 2 Apr 2024 15:23:13 +0200 Subject: [PATCH] test --- Dockerfile | 10 +--------- Jenkinsfile | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8bd6184..597b075 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index c9b8ec5..058cb96 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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