update d and j-lab5

This commit is contained in:
Yevhenii Poliakov 2023-05-14 13:43:07 +02:00
parent 657021b939
commit 4b9410f07b
3 changed files with 83 additions and 0 deletions

View File

@ -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

49
Jenkinsfile-lab5 Normal file
View File

@ -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"
}
}
}
}

33
Jenkinsfile_dh1 Normal file
View File

@ -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"
}
}
}
}