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