try to add root user to dockerfile
This commit is contained in:
parent
4d4af8b2ab
commit
4bcfd02030
@ -1,6 +1,8 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
dockerfile true
|
dockerfile {
|
||||||
|
args "-u root" // Run Docker container with root user
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
parameters {
|
parameters {
|
||||||
@ -32,6 +34,9 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
// run python3 main.py inside docker created from dockerfile in iumKC directory
|
// run python3 main.py inside docker created from dockerfile in iumKC directory
|
||||||
// sh "docker build -t iumkc ."
|
// 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"
|
sh "python3 main.py"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user