update jenkinsfile and dockerfile
This commit is contained in:
parent
151bcfc15d
commit
fa08d5669c
12
Dockerfile
12
Dockerfile
@ -15,9 +15,13 @@ RUN apt-get install unzip
|
||||
#RUN chmod 666 root/.kaggle
|
||||
#RUN chmod 666 root/.kaggle/kaggle.json
|
||||
|
||||
ENV KAGGLE_USERNAME=maciejczajka
|
||||
ENV KAGGLE_KEY=d8f044ad2b96d32372e22f9054c02bb1
|
||||
ENV CUTOFF=1000
|
||||
#ENV KAGGLE_USERNAME=maciejczajka
|
||||
#ENV KAGGLE_KEY=d8f044ad2b96d32372e22f9054c02bb1
|
||||
#ENV CUTOFF=1000
|
||||
ARG KAGGLE_USERNAME
|
||||
ARG KAGGLE_KEY
|
||||
ENV KAGGLE_USERNAME=${KAGGLE_USERNAME}
|
||||
ENV KAGGLE_KEY=${KAGGLE_KEY}
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@ -27,4 +31,4 @@ COPY Zajecia_2/main.py .
|
||||
#RUN ls -al /root/.kaggle/kaggle.json
|
||||
RUN whoami
|
||||
#RUN ./download.sh
|
||||
#CMD ["python3", "./main.py"]
|
||||
CMD ["python3", "./main.py"]
|
||||
|
@ -1,6 +1,8 @@
|
||||
pipeline {
|
||||
agent {
|
||||
dockerfile true
|
||||
dockerfile {
|
||||
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY}"
|
||||
}
|
||||
}
|
||||
parameters {
|
||||
string(
|
||||
|
Loading…
Reference in New Issue
Block a user