Skip to content
Snippets Groups Projects
Commit f486d458 authored by Andres Maldonado's avatar Andres Maldonado
Browse files

[meta-registry-test] Update README.md, update .gitignore...

... and add example 'htpasswd' file
parent c26b22ba
No related branches found
No related tags found
No related merge requests found
Pipeline #59255 canceled
# Avoid committing real secrets! # Avoid committing real secrets!
*.secrets *.secrets
htpasswd
...@@ -6,6 +6,25 @@ ...@@ -6,6 +6,25 @@
### First time ### First time
_This guide assumes that a (manually deployed) registry is already running in `pica01-test`_
1. Generate a password in [picapass](https://gitlab.utc.fr/picasoft/interne/pass/) 1. Generate a password in [picapass](https://gitlab.utc.fr/picasoft/interne/pass/)
2. Generate a new `htpasswd` file with `htpasswd -Bn <username>`. This will prompt you for the password and will display results on stdout 2. Generate a new `htpasswd` file with `htpasswd -Bn <username>`. This will prompt you for the password and will display results on stdout
3. In the target VM, create `./secrets/htpasswd` and paste there the output of the previous command 3. In `pica01-test`, create `/DATA/docker/dockerfiles/meta-registry-test/secrets/htpasswd` and paste there the output of the previous command. Make sure permissions are correct (`660`).
### Updating this image
Update: Same as in general [README.md](/README.md) (don't forget to increase the version number in `docker-compose.yml`). The CI will build an image and deploy it to the old test registry.
Deploy: not the same !!
### Deploy updates
**Do not use `docker_test.sh` or `docker_prod.sh` to deploy this`.** Deploy manually:
1. `cd /DATA/docker/dockerfiles/ && git pull`
2. Pull the new image from the old registry (E.g. `docker pull registry.test.picasoft.net/meta-registry-test:0.1`)
3. `cd /DATA/docker/dockerfiles/meta-registry-test/ && docker-compose up -d`
### Notes
`./secrets/htpasswd.example` contains an example file generated by `htpasswd` for user `picauser` and password `picapassword`.
picauser:$2y$05$axvpLiYg.ADRa2I8xAU/weLb7urnUIgoehsQuKut1/dlIhDOQ.iPy
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment