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 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 pip3 install pandas
RUN echo "export PATH=\"\$HOME/.local/bin:\$PATH\"" >> ~/.bashrc RUN pip3 install numpy
RUN pip3 install sklearn
RUN pip3 install --user pandas COPY ./lego_sets.csv ./
RUN pip3 install --user numpy COPY ./process_dataset.py ./
RUN pip3 install --user sklearn
COPY ./download_dataset.sh ./
COPY ./process_data.py ./
RUN chmod u+x ./download_dataset.sh ./process_data.py

6
Jenkinsfile vendored
View File

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