Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gaetano Raffaele
moringa
Commits
e47160b0
Commit
e47160b0
authored
Mar 31, 2021
by
Vincent Delbar
Browse files
ENH: renamed Dockerfiles and update README
parent
ed0a1ea8
Changes
3
Hide whitespace changes
Inline
Side-by-side
docker/
base-otb/
Dockerfile
→
docker/Dockerfile
.base
View file @
e47160b0
File moved
docker/
moringa/
Dockerfile
→
docker/Dockerfile
.moringa
View file @
e47160b0
File moved
docker/README.md
View file @
e47160b0
...
...
@@ -104,7 +104,7 @@ docker login gitlab-registry.irstea.fr
# OTB base image, example with tag 7.2.0 (default value is release-7.2)
# It is located in subregistry gitlab-registry.irstea.fr/raffaele.gaetano/moringa/base
docker build
--build-arg
OTB_BRANCH
=
7.2.0
-f
docker/
base-otb/
Dockerfile
\
docker build
--build-arg
OTB_BRANCH
=
7.2.0
-f
docker/Dockerfile
.base
\
-t
gitlab-registry.irstea.fr/raffaele.gaetano/moringa/base:focal-otb72
.
docker push gitlab-registry.irstea.fr/raffaele.gaetano/moringa/base:focal-otb72
...
...
@@ -117,13 +117,15 @@ docker push gitlab-registry.irstea.fr/raffaele.gaetano/moringa/base
# MORINGA build from the default 'moringa/base' image
# You don't need to rebuild OTB if you just want to update moringa files using current branch / local commits
#git checkout custom_branch
docker build
-f
docker/
moringa/
Dockerfile
-t
gitlab-registry.irstea.fr/raffaele.gaetano/moringa
.
docker build
-f
docker/Dockerfile
.moringa
-t
gitlab-registry.irstea.fr/raffaele.gaetano/moringa
.
docker push gitlab-registry.irstea.fr/raffaele.gaetano/moringa:latest
# Build with custom ubuntu base image
docker build
--build-arg
BASE_IMG
=
ubuntu:18.04
-f
docker/
base-otb/
Dockerfile
\
docker build
--build-arg
BASE_IMG
=
ubuntu:18.04
-f
docker/Dockerfile
.base
\
-t
gitlab-registry.irstea.fr/raffaele.gaetano/moringa/base:bionic-otb72
.
docker push gitlab-registry.irstea.fr/raffaele.gaetano/moringa/base:bionic-otb72
docker build
-f
docker/Dockerfile.moringa
---build-arg
BASE_IMG
=
gitlab-registry.irstea.fr/raffaele.gaetano/moringa/base:bionic-otb72
\
-t
gitlab-registry.irstea.fr/raffaele.gaetano/moringa:bionic .
```
### Fix volume ownership issue (required if host's UID > 1000)
...
...
@@ -135,7 +137,7 @@ This will only persist in a named container, it is required every time you're cr
```
bash
# Create a named container (here with your HOME as volume)
# Create a named container (here with your HOME as volume)
, Docker will automatically pull image
docker create
--interactive
--tty
--volume
/home/
$USER
:/home/ubuntu/data
\
--name
moringa gitlab-registry.irstea.fr/raffaele.gaetano/moringa /bin/bash
# Start a background container process (in order to exec root commands, because default user isn't sudoer)
...
...
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