Dockerfile 3 and Jenkinsfile 5
This commit is contained in:
parent
e3c8d97386
commit
76a2f14c21
29
Dockerfile_3
Normal file
29
Dockerfile_3
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# Nasz obraz będzie dzidziczył z obrazu Ubuntu w wersji latest
|
||||||
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
# Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes)
|
||||||
|
RUN apt update && apt install -y figlet
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN apt-get install -y python3
|
||||||
|
RUN apt-get install -y python3-pip
|
||||||
|
RUN python3 -m pip install pandas
|
||||||
|
RUN python3 -m pip install numpy
|
||||||
|
RUN python3 -m pip install torch
|
||||||
|
RUN python3 -m pip install torchvision
|
||||||
|
RUN python3 -m pip install sacred
|
||||||
|
RUN python3 -m pip install pymongo
|
||||||
|
|
||||||
|
COPY ./zadanie1.py ./
|
||||||
|
COPY ./Customers.csv ./
|
||||||
|
COPY ./sacred_train.py ./
|
||||||
|
#COPY ./test.py ./
|
||||||
|
#COPY ./cifar_net.pth ./
|
||||||
|
|
||||||
|
RUN chmod +r ./Customers.csv
|
||||||
|
#RUN chmod +x ./zadanie1.py
|
||||||
|
#RUN chmod +x ./train.py
|
||||||
|
RUN chmod +x ./sacred_train.py
|
||||||
|
|
||||||
|
CMD python3 ./sacred_train.py
|
14
Jenkinsfile_5
Normal file
14
Jenkinsfile_5
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
dockerfile {
|
||||||
|
filename 'Dockerfile_3'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Archive Output') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts 'my_runs'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user