merge
This commit is contained in:
Kacper 2022-04-02 16:43:29 +02:00
commit 65baaa6431
2 changed files with 8 additions and 15 deletions

View File

@ -2,16 +2,11 @@ FROM ubuntu:latest
WORKDIR /ium
RUN apt update && apt install -y python3-pip unzip
RUN apt update && apt install -y python3-pip
RUN pip3 install --user kaggle
RUN echo "export PATH=\"\$HOME/.local/bin:\$PATH\"" >> ~/.bashrc
RUN pip3 install pandas
RUN pip3 install numpy
RUN pip3 install sklearn
RUN pip3 install --user pandas
RUN pip3 install --user numpy
RUN pip3 install --user sklearn
COPY ./download_dataset.sh ./
COPY ./process_data.py ./
RUN chmod u+x ./download_dataset.sh ./process_data.py
COPY ./lego_sets.csv ./
COPY ./process_dataset.py ./

6
Jenkinsfile vendored
View File

@ -13,15 +13,13 @@ pipeline {
)
}
agent {
dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY}"
dockerfile true
}
}
stages {
stage('Stage 1') {
steps {
echo 'Downloading dataset...'
sh './download_dataset.sh'
sh 'chmod u+x ./process_dataset.py'
echo 'Dataset downloaded'
echo 'Processing dataset...'
sh 'python3 process_dataset.py'