From 15afa91f9799b77269d7856ac593e9bf5635a6d4 Mon Sep 17 00:00:00 2001 From: Kacper Dudzic Date: Sun, 24 Apr 2022 15:07:23 +0200 Subject: [PATCH] =?UTF-8?q?pocz=C4=85tek=20zada=C5=84=20z=20lab6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lab6/Dockerfile | 16 ++++++++++++++++ lab6/Jenkinsfile | 19 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 lab6/Dockerfile create mode 100644 lab6/Jenkinsfile diff --git a/lab6/Dockerfile b/lab6/Dockerfile new file mode 100644 index 0000000..d021e3a --- /dev/null +++ b/lab6/Dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:latest + +WORKDIR /ium + +RUN apt update && apt install -y python3-pip + +RUN pip3 install pandas +RUN pip3 install numpy +RUN pip3 install sklearn +RUN pip3 install tensorflow +RUN pip3 install matplotlib +RUN pip3 install keras + +COPY ./lego_sets.csv ./ +COPY ./process_dataset.py ./ +COPY ./simple_regression.py ./ diff --git a/lab6/Jenkinsfile b/lab6/Jenkinsfile new file mode 100644 index 0000000..08a308c --- /dev/null +++ b/lab6/Jenkinsfile @@ -0,0 +1,19 @@ +pipeline { + agent { + dockerfile true + } + stages { + stage('Stage 1') { + steps { + sh 'chmod u+x ./process_dataset.py ./simple_regression.py' + echo 'Processing dataset...' + sh 'python3 process_dataset.py' + echo 'Dataset processed' + echo 'Conducting simple regression model test' + sh 'python3 simple_regression.py' + echo 'Model predictions saved' + sh 'head lego_linreg_results.csv' + } + } + } +} \ No newline at end of file