This commit is contained in:
parent
1558c8c6c4
commit
e4b54adf07
10
pytorch/Dockerfile
Normal file
10
pytorch/Dockerfile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y python3-pip && pip3 install setuptools && pip3 install numpy && pip3 install pandas && pip3 install wget && pip3 install scikit-learn && rm -rf /var/lib/apt/lists/*
|
||||||
|
RUN pip3 install torch torchvision torchaudio
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY ./create.py ./
|
||||||
|
COPY ./stats.py ./
|
||||||
|
COPY ./stroke-pytorch.py ./
|
||||||
|
|
29
pytorch/Jenkinsfile
vendored
Normal file
29
pytorch/Jenkinsfile
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
dockerfile true
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('checkout') {
|
||||||
|
steps {
|
||||||
|
git 'https://git.wmi.amu.edu.pl/s434766/ium_434766.git'
|
||||||
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434766-create-dataset'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Docker'){
|
||||||
|
steps{
|
||||||
|
sh 'python3 "./stroke-pytorch.py" > model.txt'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('checkout: Check out from version control') {
|
||||||
|
steps {
|
||||||
|
git 'https://git.wmi.amu.edu.pl/s434766/ium_434766.git'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('archiveArtifacts') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts 'model.txt'
|
||||||
|
archiveArtifacts 'stroke.pkl'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user