try to add root user to dockerfile

This commit is contained in:
Karol Cyganik 2024-04-14 14:50:48 +02:00
parent 4d4af8b2ab
commit 4bcfd02030

View File

@ -1,6 +1,8 @@
pipeline {
agent {
dockerfile true
dockerfile {
args "-u root" // Run Docker container with root user
}
}
parameters {
@ -32,6 +34,9 @@ pipeline {
steps {
// run python3 main.py inside docker created from dockerfile in iumKC directory
// sh "docker build -t iumkc ."
// sh "mkdir -p ~/.kaggle"
// sh "echo '{\"username\":\"${params.KAGGLE_USERNAME}\",\"key\":\"${params.KAGGLE_KEY}\"}' > ~/.kaggle/kaggle.json"
// sh "chmod 600 ~/.kaggle/kaggle.json"
sh "python3 main.py"
}
}