Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
verse
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
rocker
verse
Commits
2289f47c
Commit
2289f47c
authored
4 years ago
by
Olivier Benz
Browse files
Options
Downloads
Patches
Plain Diff
Update rstudio
- Update Dockerfile for latest version - Add .gitlab-ci.yml
parent
2fc420fd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rstudio/.gitlab-ci.yml
+43
-0
43 additions, 0 deletions
rstudio/.gitlab-ci.yml
rstudio/latest.Dockerfile
+1
-4
1 addition, 4 deletions
rstudio/latest.Dockerfile
with
44 additions
and
4 deletions
rstudio/.gitlab-ci.yml
0 → 100644
+
43
−
0
View file @
2289f47c
image
:
docker:stable
services
:
-
docker:stable-dind
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
/certs"
CRAN
:
https://cloud.r-project.org
R_VERSION_UPDATE
:
"
false"
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
export VERSION_MAJ_MIN_PAT=`sed -n "s|.*R_VERSION:-\([0-9]\.[0-9]\.[0-9]\).*|\1|p" rstudio/latest.Dockerfile`
-
export VERSION_MAJ_MIN=`echo "${VERSION_MAJ_MIN_PAT:0:3}"`
-
export VERSION_MAJ=`echo "${VERSION_MAJ_MIN_PAT:0:1}"`
build-latest
:
stage
:
build
script
:
-
docker build --build-arg CRAN=$CRAN --pull -t $CI_REGISTRY_IMAGE:latest -f rstudio/latest.Dockerfile .
-
docker tag $CI_REGISTRY_IMAGE:latest $CI_REGISTRY_IMAGE:$VERSION_MAJ_MIN_PAT
-
docker tag $CI_REGISTRY_IMAGE:latest $CI_REGISTRY_IMAGE:$VERSION_MAJ_MIN
-
docker tag $CI_REGISTRY_IMAGE:latest $CI_REGISTRY_IMAGE:$VERSION_MAJ
-
docker push $CI_REGISTRY_IMAGE:latest
-
docker push $CI_REGISTRY_IMAGE:$VERSION_MAJ_MIN_PAT
-
docker push $CI_REGISTRY_IMAGE:$VERSION_MAJ_MIN
-
docker push $CI_REGISTRY_IMAGE:$VERSION_MAJ
only
:
refs
:
-
master
changes
:
-
rstudio/latest.Dockerfile
build-version
:
stage
:
build
script
:
-
docker build --pull -t $CI_REGISTRY_IMAGE:3.6.2 -f rstudio/3.6.2.Dockerfile .
-
docker push $CI_REGISTRY_IMAGE:3.6.2
only
:
refs
:
-
freeze-version
changes
:
-
rstudio/3.6.2.Dockerfile
This diff is collapsed.
Click to expand it.
rstudio/latest.Dockerfile
+
1
−
4
View file @
2289f47c
FROM
r
ocke
r/r-ver:3.6.3
FROM
r
egistry.gitlab.b-data.ch/
r/r-ver:3.6.3
ARG
RSTUDIO_VERSION
#ENV RSTUDIO_VERSION=${RSTUDIO_VERSION:-1.2.5033}
...
...
@@ -95,7 +95,4 @@ COPY pam-helper.sh /usr/lib/rstudio-server/bin/pam-helper
EXPOSE
8787
## automatically link a shared volume for kitematic users
VOLUME
/home/rstudio/kitematic
CMD
["/init"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment