_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`.