2024-07-15 08:13:13 +00:00
|
|
|
# Verdnatura Docker image repository
|
2020-01-07 09:22:41 +00:00
|
|
|
|
2024-07-15 08:13:13 +00:00
|
|
|
Dockerfile and compose files used as basis for Verdnatura service deployment.
|
2020-01-16 14:09:47 +00:00
|
|
|
|
2024-07-15 08:13:13 +00:00
|
|
|
Some scripts are provided to speed up the most common actions:
|
|
|
|
|
|
|
|
* *image-push.sh*: Build, tag and push an own image.
|
|
|
|
* *image-cache.sh*: Cache docker hub image in the local registry.
|
|
|
|
|
|
|
|
Use *image.conf* for local registry and repository configuration.
|
2020-01-16 14:09:47 +00:00
|
|
|
|
2024-07-09 09:30:13 +00:00
|
|
|
## Registry authentication
|
2022-10-14 17:06:58 +00:00
|
|
|
|
2024-07-09 09:30:13 +00:00
|
|
|
Login into docker registry, if you don't logout, credentials will remain saved
|
|
|
|
in your home directory.
|
2020-01-16 14:09:47 +00:00
|
|
|
```
|
2022-10-14 17:06:58 +00:00
|
|
|
docker login $registry
|
2020-01-16 14:09:47 +00:00
|
|
|
```
|
|
|
|
|
2024-07-09 09:30:13 +00:00
|
|
|
Logout from docker registry.
|
2020-01-16 14:09:47 +00:00
|
|
|
```
|
2024-07-09 09:30:13 +00:00
|
|
|
docker logout $registry
|
2020-01-16 14:09:47 +00:00
|
|
|
```
|
|
|
|
|
2024-07-09 09:30:13 +00:00
|
|
|
## Test image
|
|
|
|
|
|
|
|
Run image locally.
|
2020-01-16 14:09:47 +00:00
|
|
|
```
|
2024-07-09 09:30:13 +00:00
|
|
|
docker run --name test $registry/$image:$tag
|
2020-01-16 14:09:47 +00:00
|
|
|
```
|