From e08cb5d6fede42547b5554aa7f8108107e7a4d1f Mon Sep 17 00:00:00 2001 From: ulaniuk Date: Sun, 3 Apr 2022 21:02:38 +0200 Subject: [PATCH] Fix --- Dockerfile | 24 +++++++++--------------- Jenkinsfile | 9 ++++++--- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2c07818..13ef218 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,28 +1,22 @@ -FROM jenkins/jenkins:2.332.1-jdk11 -USER root -RUN apt-get update && apt-get install -y lsb-release -RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \ - https://download.docker.com/linux/debian/gpg -RUN echo "deb [arch=$(dpkg --print-architecture) \ - signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \ - https://download.docker.com/linux/debian \ - $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list -RUN apt-get update && apt-get install -y docker-ce-cli -USER jenkins -RUN jenkins-plugin-cli --plugins "blueocean:1.25.3 docker-workflow:1.28" - FROM python:3.7 + WORKDIR / + RUN pip install kaggle + RUN pip install pandas + RUN pip install sklearn + COPY KaggleV2-May-2016.csv ./ + COPY create_data.py ./ + COPY stats_data.py ./ -# CMD ["python", "./create_data.py"] +CMD ["python", "./create_data.py"] -# CMD ["python", "./stats_data.py"] +CMD ["python", "./stats_data.py"] # RUN kaggle datasets download -d joniarroba/noshowappointments diff --git a/Jenkinsfile b/Jenkinsfile index 21d59ea..10b0902 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,5 @@ pipeline { - agent { - docker { image 'ium_478855' } - } + agent any parameters{ password( defaultValue: '', @@ -35,6 +33,11 @@ pipeline { } } } + stage("Build Docker") { + steps { + sh 'docker build -t ium_478855' + } + } stage("Dara Preparation") { steps { sh 'echo "PREPARATION"'