docker fix
This commit is contained in:
parent
d6f66b0fcb
commit
d26b2e9ecf
11
Dockerfile
11
Dockerfile
@ -7,8 +7,8 @@ RUN apt-get install -y python3
|
|||||||
RUN apt-get install -y unzip
|
RUN apt-get install -y unzip
|
||||||
RUN apt-get install -y python3-pip
|
RUN apt-get install -y python3-pip
|
||||||
|
|
||||||
RUN python3 -m pip install --user kaggle
|
RUN python3 -m pip install kaggle
|
||||||
RUN 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
|
||||||
|
|
||||||
@ -20,6 +20,13 @@ WORKDIR /app
|
|||||||
# Skopiujmy nasz skrypt do katalogu /app w kontenerze
|
# Skopiujmy nasz skrypt do katalogu /app w kontenerze
|
||||||
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
|
||||||
|
|
||||||
|
RUN "chmod a+x ./startscript1.sh"
|
||||||
|
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
|
# Domyślne polecenie, które zostanie uruchomione w kontenerze po jego starcie
|
||||||
# RUN chmod u+x ./startscript1.sh
|
# RUN chmod u+x ./startscript1.sh
|
||||||
|
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@ -25,7 +25,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage("Shell Scripts") {
|
stage("Shell Scripts") {
|
||||||
steps {
|
steps {
|
||||||
sh "chmod u+x ./startscript1.sh"
|
|
||||||
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 'python3 ./src/task1python.py'
|
sh 'python3 ./src/task1python.py'
|
||||||
archiveArtifacts 'data.txt'
|
archiveArtifacts 'data.txt'
|
||||||
|
4
src/pythonTest.py
Normal file
4
src/pythonTest.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import pandas as pd
|
||||||
|
|
||||||
|
abc = pd.array(['a','b','c'])
|
||||||
|
print(abc)
|
Loading…
Reference in New Issue
Block a user