Skip to content

Commit

Permalink
Adding R and RStudio images to docker data science
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordonei committed Sep 20, 2024
1 parent 942db0c commit 26f41bb
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,27 @@ podTemplate(label: label, yaml: """
}
}
}
stage('r') {
retry(10) {
container(label) {
withCredentials([usernamePassword(credentialsId: 'opm-data-proxy-user', passwordVariable: 'OPM_DATA_PASSWORD', usernameVariable: 'OPM_DATA_USER'),
usernamePassword(credentialsId: 'docker-user', passwordVariable: 'DOCKER_PASS', usernameVariable: 'DOCKER_USER')]) {
sh '''
# guardrail to stop push to docker hub
PUSH=$([ $BRANCH_NAME == "master" ] && echo true || echo false)
./bin/buildkit-docker.sh "${OPM_DATA_USER}" "${OPM_DATA_PASSWORD}" \\
"${DOCKER_USER}" "${DOCKER_PASS}" \\
"${PWD}/base/drivers/python_minimal/r" \\
"docker.io/cityofcapetown/datascience:r" \\
"${PUSH}"
sleep 60
'''
}
updateGitlabCommitStatus name: 'r', state: 'success'
}
}
}
stage('python-image') {
retry(10){
container(label) {
Expand All @@ -133,6 +154,27 @@ podTemplate(label: label, yaml: """
}
}
}
stage('rstudio') {
retry(10) {
container(label) {
withCredentials([usernamePassword(credentialsId: 'opm-data-proxy-user', passwordVariable: 'OPM_DATA_PASSWORD', usernameVariable: 'OPM_DATA_USER'),
usernamePassword(credentialsId: 'docker-user', passwordVariable: 'DOCKER_PASS', usernameVariable: 'DOCKER_USER')]) {
sh '''
# guardrail to stop push to docker hub
PUSH=$([ $BRANCH_NAME == "master" ] && echo true || echo false)
./bin/buildkit-docker.sh "${OPM_DATA_USER}" "${OPM_DATA_PASSWORD}" \\
"${DOCKER_USER}" "${DOCKER_PASS}" \\
"${PWD}/base/drivers/python_minimal/r/rstudio" \\
"docker.io/cityofcapetown/datascience:rstudio" \\
"${PUSH}"
sleep 60
'''
}
updateGitlabCommitStatus name: 'rstudio', state: 'success'
}
}
}
stage('jupyter-k8s-image') {
retry(10){
container(label) {
Expand Down

0 comments on commit 26f41bb

Please sign in to comment.