add dataset
This commit is contained in:
parent
57da6394d8
commit
2fafab89c0
18
Dockerfile
18
Dockerfile
@ -1,7 +1,5 @@
|
|||||||
# Nasz obraz będzie dzidziczył z obrazu Ubuntu w wersji latest
|
|
||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
|
||||||
# Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes)
|
|
||||||
RUN apt update && apt install -y
|
RUN apt update && apt install -y
|
||||||
RUN apt-get install -y python3
|
RUN apt-get install -y python3
|
||||||
RUN apt-get install -y unzip
|
RUN apt-get install -y unzip
|
||||||
@ -10,23 +8,15 @@ RUN apt-get install -y python3-pip
|
|||||||
RUN python3 -m pip install kaggle
|
RUN python3 -m pip install kaggle
|
||||||
RUN python3 -m pip install pandas
|
RUN python3 -m pip install pandas
|
||||||
|
|
||||||
RUN ln -s ~/.local/bin/kaggle /usr/bin/kaggle
|
# RUN ln -s ~/.local/bin/kaggle /usr/bin/kaggle
|
||||||
|
|
||||||
# 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
|
WORKDIR /app
|
||||||
|
|
||||||
# Skopiujmy nasz skrypt do katalogu /app w kontenerze
|
COPY ./house-price-dataset.zip ./
|
||||||
COPY ./startscript1.sh ./
|
COPY ./startscript1.sh ./
|
||||||
COPY ./src/task1python.py ./src/task1python.py
|
COPY ./src/task1python.py ./src/task1python.py
|
||||||
COPY ./src/pythonTest.py ./src/pythonTest.py
|
COPY ./src/pythonTest.py ./src/pythonTest.py
|
||||||
|
|
||||||
|
|
||||||
RUN chmod +x ./startscript1.sh
|
RUN chmod +x ./startscript1.sh
|
||||||
RUN ./startscript1.sh
|
RUN chmod +x ./src/task1python.py
|
||||||
|
RUN chmod +x ./src/pythonTest.py
|
||||||
RUN chmod a+x ./src/task1python.py
|
|
||||||
RUN chmod a+x ./src/pythonTest.py
|
|
||||||
|
|
||||||
# Domyślne polecenie, które zostanie uruchomione w kontenerze po jego starcie
|
|
||||||
# RUN chmod u+x ./startscript1.sh
|
|
||||||
# RUN chmod u+x ./src/task1python.py
|
|
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -25,8 +25,8 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage("Shell Scripts") {
|
stage("Shell Scripts") {
|
||||||
steps {
|
steps {
|
||||||
sh "sudo usermod -aG docker jenkins"
|
// sh "KAGGLE_USERNAME=${params.KAGGLE_USERNAME} KAGGLE_KEY=${params.KAGGLE_KEY} CUTOFF=${CUTOFF} ./startscript1.sh"
|
||||||
sh "KAGGLE_USERNAME=${params.KAGGLE_USERNAME} KAGGLE_KEY=${params.KAGGLE_KEY} CUTOFF=${CUTOFF} ./startscript1.sh"
|
sh './startscript1.sh'
|
||||||
sh 'python3 ./src/task1python.py'
|
sh 'python3 ./src/task1python.py'
|
||||||
archiveArtifacts 'data.txt'
|
archiveArtifacts 'data.txt'
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
kaggle datasets download -d akash14/house-price-dataset
|
# kaggle datasets download -d akash14/house-price-dataset
|
||||||
unzip -o house-price-dataset.zip
|
unzip -o house-price-dataset.zip
|
||||||
echo $CUTOFF
|
echo $CUTOFF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user