Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
docker
jekyll-lcsb
Commits
47cf652d
Commit
47cf652d
authored
Mar 04, 2020
by
Jacek Lebioda
Browse files
Merge branch '3-upgrade-dockerfile-so-that-it-could-benefit-from-cache' into 'master'
feat: upgrade Dockerfile Closes
#3
See merge request
!7
parents
3204401a
b56c2b8e
Pipeline
#22001
failed with stage
in 5 minutes and 20 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
47cf652d
FROM
ruby:2.6
MAINTAINER
Jacek Lebioda "jacek.lebioda@uni.lu"
RUN
gem
install
bundler:2.0.2
&&
\
gem
install
sassc
--
--disable-march-tune-native
COPY
Gemfile .
COPY
Gemfile.lock .
RUN
gem
install
bundler:2.0.2
&&
\
gem
install
sassc
--
--disable-march-tune-native
&&
\
bundle
install
&&
bundle update
RUN
bundle
install
&&
bundle update
readme.md
View file @
47cf652d
...
...
@@ -4,7 +4,8 @@ A Docker base-image containing Ruby dependencies for Jekyll instances using Jeky
# Versions
| Tag | Jekyll version | Bundler version | Theme version |
|:-----------------:|:--------------:|-----------------|---------------|
| 1.2 (or latest) | Jekyll 4.0.0 | 2.0.2 | 0.3.3 |
| 1.3 (or latest) | Jekyll 4.0.0 | 2.0.2 | 0.3.3 |
| 1.2 | Jekyll 4.0.0 | 2.0.2 | 0.3.3 |
| 1.1 | Jekyll 4.0.0 | 2.0.2 | 0.3.3 |
| 1.0 | Jekyll 4.0.0 | 2.0.2 | 0.3.0 |
| 0.1 (or legacy) | Jekyll 3.8.6 | 1.17.3 | 0.3.0 |
...
...
@@ -19,8 +20,20 @@ image: git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb:latest
image: git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb:0.1
```
For the reproducibility, it's good if you pin the version to a specific tag, e.g.
`1.3`
instead of
`latest`
.
# How to build and push to the repository?
Run:
It is handled by gitlab-CI automatically (see
`.gitlab-ci.yml`
) when you tag the commit.
Anyway, if you'd like to do it yourself, perform these steps:
Login to gitlab registry (you can generate the token to login with https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html).
```
docker login git-r3lab.uni.lu:4567
```
Then, build the image:
```
# replace `new_tag` with e.g. 1.3, and don't forget the dot...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment