-
Notifications
You must be signed in to change notification settings - Fork 4
Refactor Images to Multi-Stage Builds #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
jan-abel-inwt
wants to merge
32
commits into
4.5.1
Choose a base branch
from
4.5.1.non-root
base: 4.5.1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 20 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
6b6a380
gnu: switch to ftpmirror and https
5b10357
change tag name (temporary)
7d6f819
r-base - introduce a multi stage build with a non-root user
6205327
r-batch - remove aws config
cdf071c
r-batch - introduce a multi stage build with a non-root user
ade12c2
r-shiny - add installAutomake.sh to r-shiny
f03fe06
r-shiny - introduce a multi stage build with a non-root user
954a141
r-base - remove automake
8b97fde
r-model - introduce a multi stage build with a non-root user
ab200ff
r-geos - introduce a multi stage build with a non-root user
98b18f4
add Makefile to change R-Version and Build Images
c736967
add global arguments
f2e07aa
adjust sed command
14276b6
add opencontainer Lables
ea76724
add revision and created lables to image builds
2db420e
adjust Lables
bdb05a2
Create LICENSE
jan-abel-inwt 21c929c
adjust Readme
c8e8ea6
add dependabot
69cefca
Merge branch '4.5.1.non-root' of github.com:INWTlab/r-docker into 4.5…
0a669f3
Update Makefile
jan-abel-inwt c55d0b5
Update Makefile
jan-abel-inwt 0d329ac
Update r-batch/Dockerfile
jan-abel-inwt 12b9eb9
Update r-geos/Dockerfile
jan-abel-inwt 281589b
Update r-model/Dockerfile
jan-abel-inwt 097ac05
fix typos
b011a26
ShellCheck InstallAutomake Script
4da1ece
remove install automake script from r-base
a366303
use TZ envvar
54a4545
use TZ envvar II
5697902
test pak
jan-abel-inwt c28460f
adjust os codename for ppm url
jan-abel-inwt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "docker" | ||
| directory: "/r-base/" | ||
| schedule: | ||
| interval: "monthly" | ||
| assignees: | ||
| - "jan-abel-inwt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| R_VERSION := 4.5.1 | ||
| TAG := ${R_VERSION} | ||
| IMAGES := r-base r-batch r-model r-geos r-shiny | ||
|
|
||
| .PHONY: update-version | ||
| update-version: | ||
| @echo "--- Updating R version tags to ${R_VERSION} in Dockerfiles ---" | ||
| @for image in ${IMAGES}; do \ | ||
| file="$$image/Dockerfile"; \ | ||
| sed -i "s/\(ARG R_VERSION=\)[0-9]\+\.[0-9]\+\.[0-9]\+/\1${R_VERSION}/g" "$$file" \ | ||
| && echo "Updated $$file"; \ | ||
| done | ||
| @echo "--- All Dockerfiles updated successfully! ---" | ||
|
|
||
| .PHONY: all $(IMAGES) clean | ||
| all: $(IMAGES) | ||
| @echo "--- Successfully built all Docker images with tag: $(TAG) ---" | ||
|
|
||
| $(IMAGES): | ||
| @echo "Building Docker image: inwt/$@:$(TAG) from folder: $@" | ||
| docker build -t inwt/$@:$(TAG) $@ | ||
|
|
||
| .PHONY: clean | ||
| clean: | ||
| @echo "Removing locally tagged images for version ${TAG}..." | ||
| @for img in ${ALL_IMAGES}; do \ | ||
jan-abel-inwt marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| docker rmi inwt/$$img:${TAG} || true; \ | ||
| done | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.