added admin and docker scripts from legacy vps
This commit is contained in:
parent
95c41cd921
commit
eb2f553235
8
admin/bin/backup.sh
Executable file
8
admin/bin/backup.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
#mysqldump -uroot -p$MYSQL_PASSWORD -h127.0.0.1 -B sonar > ~/backup/sonar.sql
|
||||
mysqldump -uroot -p$MYSQL_PASSWORD -h127.0.0.1 -B wordpress > ~/backup/wordpress.sql
|
||||
rm -f ~/backup/bin.tar && tar cvf ~/backup/bin.tar ~/bin
|
||||
cp /etc/haproxy/haproxy.cfg ~/backup
|
||||
rm -f ~/backup/apache.tar && tar cvf ~/backup/apache.tar /etc/apache2/sites-available
|
||||
rm -f ~/backup/wordpress.tar && tar cvf ~/backup/wordpress.tar /var/www/wordpress
|
||||
tar czvf ~/backup.tgz ~/backup
|
2
admin/bin/renew-certs.sh
Executable file
2
admin/bin/renew-certs.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
OVH_AK=esJvNrhFVZoIAOhl OVH_AS=Emk7mcurrzzurNbmlFTBmpyurnuWNbCL acme.sh --issue -d vilanet.fr --dns dns_ovh -d www.vilanet.fr -d wiki.vilanet.fr -d cloud.vps.vilanet.fr -d build.vilanet.fr -d rm.vilanet.fr -d sca.vilanet.fr -d download.vilanet.fr
|
2
docker/create-docker-network.sh
Executable file
2
docker/create-docker-network.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
docker network create -d bridge br0
|
11
docker/docker-config.sh
Executable file
11
docker/docker-config.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
# NOT NEEDED ANYMORE (was used by jenkins to set DOCKER_HOST)
|
||||
export docker_ip=$(ip r | grep docker0 | awk '{print $9}')
|
||||
sudo -E bash -c 'cat > /etc/systemd/system/docker.service.d/override.conf <<EOF
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://$docker_ip:2375
|
||||
EOF
|
||||
'
|
||||
# sudo systemctl daemon-reload
|
||||
# sudo systemctl restart docker
|
4
docker/jenkins.sh
Executable file
4
docker/jenkins.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
#docker_ip=$(ip r | grep docker0 | awk '{ print $9 }')
|
||||
#sudo docker run -d --name jenkins -p 127.0.0.1:8081:8080 -e DOCKER_HOST=tcp://$docker_ip:2375 -v /var/run/docker.sock:/var/run/docker.sock -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts
|
||||
sudo docker run -d --name jenkins -p 127.0.0.1:8081:8080 -e DOCKER_HOST=unix:///var/run/docker.sock -v /var/run/docker.sock:/var/run/docker.sock -v /home/kriss/docker/jenkins/data:/var/jenkins_home jenkins/jenkins:lts
|
2
docker/mysql.sh
Executable file
2
docker/mysql.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
sudo docker run --name mysql --network br0 -v /home/kriss/docker/mysql/data:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=YMQ9AqwYuQENFKam30oy -e MYSQL_USER=wordpress -e MYSQL_DATABASE=wordpress -e MYSQL_PASSWORD=press_05284 -d mysql:5.7
|
4
docker/nexus.sh
Executable file
4
docker/nexus.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
# Add -e NEXUS_CONTEXT=xxx if there is a subpath in the URL
|
||||
docker run --name nexus -d -p 127.0.0.1:8083:8081 -p 127.0.0.1:8084:8084 -v /home/kriss/docker/nexus/data:/nexus-data sonatype/nexus3:3.30.0
|
||||
|
3
docker/sonar.sh
Executable file
3
docker/sonar.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
echo TODO: need to setup postgreSQL (to replace default H2). mySQL is not supported anymore
|
||||
docker run --name sonar -d -p 127.0.0.1:9000:9000 -v /home/kriss/docker/sonarqube/data:/opt/sonarqube/data -v /home/kriss/docker/sonarqube/extensions:/opt/sonarqube/extensions -v /home/kriss/docker/sonarqube/logs:/opt/sonarqube/logs -v /home/kriss/docker/sonarqube/temp:/opt/sonarqube/temp sonarqube:8.8.0-community
|
3
docker/swagger.sh
Executable file
3
docker/swagger.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
docker run --name swagger -d -p 127.0.0.1:8082:8080 swaggerapi/swagger-ui:v3.0.7
|
||||
|
Loading…
Reference in New Issue
Block a user