Attempt 10

This commit is contained in:
Paweł Skórzewski 2024-04-10 10:55:16 +02:00
parent 594ca50862
commit ca353acfa6
2 changed files with 7 additions and 14 deletions

View File

@ -1,11 +1,8 @@
FROM python:3.10
RUN apt update && apt install -y python3-pip
RUN pip3 install datasets kaggle
WORKDIR /app
VOLUME ["/app/.kaggle"]
WORKDIR /root
RUN mkdir -p /root/.kaggle && chmod 600 /root/.kaggle
# COPY ./create-dataset.py ./

14
Jenkinsfile vendored
View File

@ -1,8 +1,8 @@
pipeline {
agent {
dockerfile true
}
parameters {
agent {
dockerfile true
}
parameters {
string (
defaultValue: 'my_username',
description: 'Kaggle username',
@ -15,10 +15,6 @@ pipeline {
name: 'KAGGLE_KEY'
)
}
volumes {
hostPath("~/.kaggle")
containerPath("/app/.kaggle")
}
stages {
stage('Kaggle') {
steps {
@ -31,4 +27,4 @@ pipeline {
}
}
}
}
}