docker lab
This commit is contained in:
parent
b5a93a49bb
commit
0f32cb6e77
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM python:3.11
|
||||
|
||||
RUN apt-get update && apt-get -y upgrade
|
||||
RUN apt-get install -y build-essential
|
||||
|
||||
RUN python -m pip install --upgrade pip
|
||||
COPY requirements.txt /tmp
|
||||
RUN python -m pip install -r /tmp/requirements.txt
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./download.sh ./
|
||||
COPY ./calculate.sh ./
|
||||
|
||||
CMD bash
|
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -23,6 +23,13 @@ pipeline {
|
||||
|
||||
stages {
|
||||
stage('Download Dataset') {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
reuseNode true
|
||||
}
|
||||
}
|
||||
|
||||
steps {
|
||||
script {
|
||||
withEnv(["CUTOFF=${params.CUTOFF}"]) {
|
||||
|
@ -24,13 +24,15 @@ pipeline {
|
||||
}
|
||||
|
||||
stage('Execute Script') {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
reuseNode true
|
||||
}
|
||||
}
|
||||
|
||||
steps {
|
||||
sh 'bash ./calculate.sh'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Archive Results') {
|
||||
steps {
|
||||
archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,3 @@
|
||||
matplotlib==3.8.3
|
||||
numpy==1.26.4
|
||||
torch==2.2.1
|
||||
torchvision==0.17.1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user