Kaggle + Docker
This commit is contained in:
parent
06f4c3bcb1
commit
5cf8fe8d7f
@ -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
|
||||
|
||||
# Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes)
|
||||
|
@ -10,6 +10,17 @@ pipeline {
|
||||
name: 'CUTOFF',
|
||||
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 {
|
||||
@ -21,6 +32,14 @@ pipeline {
|
||||
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') {
|
||||
steps {
|
||||
sh "CUTOFF=${CUTOFF} ./create-dataset.sh"
|
||||
|
4
figlet-loop.sh
Executable file
4
figlet-loop.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
while read line; do
|
||||
figlet "$line"
|
||||
done
|
Loading…
Reference in New Issue
Block a user