Dockerfile
This commit is contained in:
parent
8a09b3e485
commit
28581651da
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
# 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
|
||||
RUN apt install -y python3 python3-pip dos2unix
|
||||
RUN pip3 install kaggle
|
||||
RUN apt install -y unzip
|
||||
|
||||
# Stwórzmy w kontenerze (jeśli nie istnieje) katalog /app i przejdźmy do niego (wszystkie kolejne polecenia RUN, CMD, ENTRYPOINT, COPY i ADD będą w nim wykonywane)
|
||||
WORKDIR /app
|
||||
|
||||
# Skopiujmy nasz skrypt do katalogu /app w kontenerze
|
||||
COPY ./skrypt.sh ./
|
||||
RUN chmod +x skrypt.sh
|
||||
RUN dos2unix skrypt.sh
|
||||
|
||||
CMD ./skrypt.sh 0
|
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -26,7 +26,8 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('sh') {
|
||||
stage('docker') {
|
||||
agent { dockerfile true }
|
||||
steps {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||
@ -35,12 +36,5 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('end') {
|
||||
steps {
|
||||
//Zarchiwizuj wynik
|
||||
archiveArtifacts 'output.txt,Global_Superstore22.csv,Global_Superstore2.csv.dev,Global_Superstore2.csv.test,Global_Superstore2.csv.train'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user