test
This commit is contained in:
parent
6fd3488b5c
commit
82c588153c
10
Dockerfile
10
Dockerfile
@ -1,22 +1,14 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
# Dockerfile
|
||||
ARG KAGGLE_USERNAME
|
||||
ARG KAGGLE_KEY
|
||||
|
||||
RUN apt update && apt install -y python3-pip
|
||||
RUN apt install unzip
|
||||
RUN apt install bc
|
||||
RUN pip3 install kaggle
|
||||
RUN pip install kaggle
|
||||
RUN pip install --user pandas
|
||||
RUN pip install --user scikit-learn
|
||||
RUN pip install --user matplotlib
|
||||
RUN pip install --user geopandas
|
||||
|
||||
RUN echo ${KAGGLE_KEY}
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./get_dataset.sh ./
|
||||
|
||||
RUN chmod +x ./get_dataset.sh
|
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -16,7 +16,7 @@ pipeline {
|
||||
script {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"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")
|
||||
customImage.inside {
|
||||
sh 'bash ./get_dataset.sh $CUTOFF'
|
||||
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true
|
||||
|
Loading…
Reference in New Issue
Block a user