Kaggle + Docker

This commit is contained in:
Paweł Skórzewski 2024-04-03 09:06:06 +02:00
parent 06f4c3bcb1
commit 5cf8fe8d7f
3 changed files with 24 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# Nasz obraz będzie dzidziczył z obrazu Ubuntu w wersji latest # Nasz obraz będzie dziedziczył z obrazu Ubuntu w wersji latest
FROM ubuntu:latest FROM ubuntu:latest
# Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes) # Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes)

View File

@ -10,6 +10,17 @@ pipeline {
name: 'CUTOFF', name: 'CUTOFF',
trim: false trim: false
) )
string (
defaultValue: 'skorzewski',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password (
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
} }
stages { stages {
@ -21,6 +32,14 @@ pipeline {
userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/pms/ium-s301654']]) userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/pms/ium-s301654']])
} }
} }
stage('Kaggle') {
script {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'kaggle datasets list'
}
}
}
stage('Download') { stage('Download') {
steps { steps {
sh "CUTOFF=${CUTOFF} ./create-dataset.sh" sh "CUTOFF=${CUTOFF} ./create-dataset.sh"

4
figlet-loop.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
while read line; do
figlet "$line"
done