diff --git a/Dockerfile b/Dockerfile index c7a1d9b..150d46b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ RUN apt-get update && \ RUN pip3 install kaggle RUN pip3 install pandas RUN pip3 install scikit-learn +RUN pip3 install tensorflow==2.12.* #RUN apt install python3.10-venv -y #RUN python3 -m venv docker_ium diff --git a/Jenkinsfile-lab5 b/Jenkinsfile-lab5 new file mode 100644 index 0000000..8f307aa --- /dev/null +++ b/Jenkinsfile-lab5 @@ -0,0 +1,49 @@ +pipeline { + agent { + dockerfile true + } + + stages { + stage('do nothing') + { + steps { + echo ("do nothing") + /*echo ("set up venv") + + sh "python3 -m venv docker_ium" + sh "source docker_ium/bin/activate" + sh "pip3 install kaggle" + sh "pip3 install pandas" + sh "pip3 install -U scikit-learn"*/ + + } + } + + stage('Run Script') { + steps { + //echo ("checkout: check out from version control") + //git "https://git.wmi.amu.edu.pl/s151636/ium_151636.git" + + //echo ("sh: Shell Script") + //sh "python3 script2.py" + + //echo ("copyArtifacts") + + + //echo("archiveArtifacts") + + //echo ("run dockerfile") + //sh docker + + + echo("run data script") + //sh "source docker_ium/bin/activate" + sh "ls -a" + sh "chmod u+x script2.py" + //sh "pip3 show pandas" + sh "python3 script3.py" + + } + } + } +} diff --git a/Jenkinsfile_dh1 b/Jenkinsfile_dh1 new file mode 100644 index 0000000..86e93b7 --- /dev/null +++ b/Jenkinsfile_dh1 @@ -0,0 +1,33 @@ +pipeline { + agent any + + stages { + + stage('Run Script') { + steps { + //echo ("checkout: check out from version control") + //git "https://git.wmi.amu.edu.pl/s151636/ium_151636.git" + + //echo ("sh: Shell Script") + //sh "python3 script2.py" + + //echo ("copyArtifacts") + + + //echo("archiveArtifacts") + + //echo ("run dockerfile") + //sh docker + + echo("run data script") + sh "docker build . -t konmak/ium:1" + sh "pip3 install kaggle" + sh "pip3 install pandas" + sh "pip3 install scikit-learn" + sh "pip3 install tensorflow==2.12.*" + + sh "python3 script2.py" + } + } + } +}