backup scripts for odoo instance farm
docker pull postgres:9.1 docker pull postgres:9.3 docker pull postgres:9.5 docker pull postgres:9.6 docker pull registry:2 docker pull zerotier/zerotier-containerized docker pull portainer/portainer
docker run --device=/dev/net/tun --net=host --cap-add=NET_ADMIN --cap-add=SYS_ADMIN -d -v /var/lib/zerotier-one:/var/lib/zerotier-one --name zerotier-one zerotier/zerotier-containerized
docker exec zerotier-one /zerotier-cli join "ID"
cd /opt/ ls -la cd registry/ ls -la mkdir -p certs sudo mkdir -p certs sudo openssl req -newkey rsa:4096 -nodes -sha256 -keyout certs/domain.key -x509 -days 365 -out certs/domain.crt
docker run -d --restart=always --name registry -v /opt/registry/certs:/certs -v /opt/registry/config.yml:/etc/docker/registry/config.yml -v /mnt/prod-NSM/registry:/var/lib/registry -e REGISTRY_HTTP_ADDR=0.0.0.0:443 -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt -e REGISTRY_HTTP_TLS_KEY=/certs/domain.key -p 443:443 registry:2
172.128.1.195 bdu-prod
172.128.1.159 bdu-test
172.128.1.188 multi-tenant01
172.128.1.180 magnus-prod
172.128.1.213 nsm-prod
10.147.18.118 development
10.131.0.27 nsm-prod-70
10.131.1.21 nsm-test
Create user_data file in cd /media/configdrive/openstack/latest echo "#cloud-config coreos: units: - name: rpc-statd.service command: start enable: true - name: mnt-prod\x2dNSM.mount command: start content: | [Mount] What=172.128.0.36:/mnt/Array-1/Odoo-shares Where=/mnt/prod-NSM Type=nfs - name: docker.service command: start enable: true" >> user_data