push v2
This commit is contained in:
parent
9aafaa623a
commit
d9931bd74b
38
README.md
38
README.md
@ -8,7 +8,7 @@ accessible via une UI. Votre Docker Hub!
|
|||||||
Ici, remplacer testuser et testpassword par le nom d'utilisateur et le mot de passe désiré.
|
Ici, remplacer testuser et testpassword par le nom d'utilisateur et le mot de passe désiré.
|
||||||
```sh
|
```sh
|
||||||
sudo apt-get install apache2-utils
|
sudo apt-get install apache2-utils
|
||||||
htpasswd -Bbn testuser testpassword > auth/htpasswd
|
htpasswd -Bbn testuser testpassword > registry-config/htpasswd
|
||||||
```
|
```
|
||||||
|
|
||||||
### LANCER LA STACK
|
### LANCER LA STACK
|
||||||
@ -31,39 +31,3 @@ Entrer l'utilisateur et le mot de passe créés plus tôt, puis:
|
|||||||
docker tag localhost/mon_image:tag
|
docker tag localhost/mon_image:tag
|
||||||
docker push localhost/mon_image:tag
|
docker push localhost/mon_image:tag
|
||||||
```
|
```
|
||||||
### MAINTENACE REGISTRE:
|
|
||||||
|
|
||||||
Dans le dossier utils du projet, vous trouverez des scripts de maintenance de votre registre. Ils nécessitent des champs à renseigner tel que l'adresse du registre ou le chemin de stockage de votre volume contenant les images du registre.
|
|
||||||
|
|
||||||
#### STACK-BACKUP-REGISTRY
|
|
||||||
|
|
||||||
1) Renseigner lURL du registre
|
|
||||||
|
|
||||||
2) Créer un crontab pour sauvegarde quotidienne:
|
|
||||||
```bash
|
|
||||||
crontab -e
|
|
||||||
```
|
|
||||||
|
|
||||||
3) Configurer l'heure de sauvegarde (ici, à 00h00 chaque jours):
|
|
||||||
```bash
|
|
||||||
0 0 * * * /path/docker/utils/stack-backup-registry.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
#### REGISTRY-IMAGE-CLEANING
|
|
||||||
|
|
||||||
1) Copier regctl:
|
|
||||||
```bash
|
|
||||||
sudo mv utils/regctl /usr/bin/
|
|
||||||
```
|
|
||||||
|
|
||||||
2) Renseigner /path/docker/utils/registry-image-cleaning.sh
|
|
||||||
|
|
||||||
3) Créer une crontab:
|
|
||||||
```bash
|
|
||||||
crontab -e
|
|
||||||
```
|
|
||||||
|
|
||||||
4) A la fin du fichier, y placer la fréquence de la crontab ainsi que le chemin du script:
|
|
||||||
```bash
|
|
||||||
0 0 * * * /path/docker/utils/registry-image-cleaning.sh
|
|
||||||
```
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user