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

5
Jenkinsfile vendored
View File

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

4
stats/Jenkinsfile vendored
View File

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