forked from s464914/ium_464914
env 2
This commit is contained in:
parent
5caa1d82b5
commit
7d827bf89d
@ -1,8 +1,8 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
|
||||||
# Dockerfile
|
# Dockerfile
|
||||||
ARG KAGGLE_USERNAME
|
ENV KAGGLE_USERNAME=alicjaszulecka
|
||||||
ARG KAGGLE_KEY
|
ENV KAGGLE_KEY=default_key
|
||||||
|
|
||||||
RUN apt update && apt install -y python3-pip
|
RUN apt update && apt install -y python3-pip
|
||||||
RUN apt install unzip
|
RUN apt install unzip
|
||||||
@ -13,9 +13,6 @@ RUN pip install --user scikit-learn
|
|||||||
RUN pip install --user matplotlib
|
RUN pip install --user matplotlib
|
||||||
RUN pip install --user geopandas
|
RUN pip install --user geopandas
|
||||||
|
|
||||||
RUN mkdir /.kaggle
|
|
||||||
RUN chmod +x /.kaggle
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ./get_dataset.sh ./
|
COPY ./get_dataset.sh ./
|
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -16,7 +16,7 @@ pipeline {
|
|||||||
script {
|
script {
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||||
def customImage = docker.build("custom-image", "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} .")
|
def customImage = docker.build("custom-image", "--build-arg KAGGLE_USERNAME=$KAGGLE_USERNAME --build-arg KAGGLE_KEY=$KAGGLE_KEY .")
|
||||||
customImage.inside {
|
customImage.inside {
|
||||||
sh 'bash ./get_dataset.sh $CUTOFF'
|
sh 'bash ./get_dataset.sh $CUTOFF'
|
||||||
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true
|
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true
|
||||||
|
Loading…
Reference in New Issue
Block a user