try to add root user to dockerfile
This commit is contained in:
parent
4d4af8b2ab
commit
4bcfd02030
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user