This commit is contained in:
Maciej Sobkowiak 2021-04-26 02:15:02 +02:00
commit 0b95b22cfa
3 changed files with 27 additions and 4 deletions

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM ubuntu:latest
RUN apt update
RUN apt install -y python3 python3-pip
RUN apt install -y curl
RUN pip3 install --user pandas
RUN pip3 install --user matplotlib
RUN pip3 install --user numpy
WORKDIR /app
COPY ./preparations.sh ./
COPY ./preprocesing_python.py ./
# CMD ./preparations.sh

11
Jenkinsfile vendored
View File

@ -18,9 +18,14 @@ pipeline {
}
stage('sh: Shell Script') {
steps {
sh 'chmod +x preparations.sh'
sh 'echo ${CUTOFF}'
sh './preparations.sh ${CUTOFF}'
script {
def image = docker.build('dock')
image.inside{
sh 'chmod +x preparations.sh'
sh 'echo ${CUTOFF}'
sh './preparations.sh ${CUTOFF}'
}
}
}
}
stage('archiveArtifacts'){

4
stats/Jenkinsfile vendored
View File

@ -1,5 +1,7 @@
pipeline {
agent any
agent {
docker {image 'maciejsobkowiak/ium:1'}
}
stages {