This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For Symfony 2.3+ | |
vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find * -type d -print0 | xargs -0 chmod 0755 # for directories | |
find . -type f -print0 | xargs -0 chmod 0644 # for files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git reset --hard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# step 1 | |
composer self-update | |
# step 2 | |
composer dump-autoload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# recursively find the amount stored in directories (with depth 1) | |
sudo du -h / -d 1 | |
# clearing of every unused Docker containers | |
# ( finded from: http://stackoverflow.com/questions/32723111/how-to-remove-old-and-unused-docker-images ) | |
docker rm -v $(docker ps --filter status=exited -q 2>/dev/null) 2>/dev/null | |
docker rmi $(docker images --filter dangling=true -q 2>/dev/null) 2>/dev/null | |
# making backup of Docker (docker-ce deploying as Docker container) | |
docker exec -i gitlab-container-name /opt/gitlab/bin/gitlab-rake gitlab:backup:create |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run docker nginx-proxy container | |
docker run -d -p 80:80 -p 443:443 \ | |
-v /home/anton/ssl-keys:/etc/nginx/certs \ | |
-v /etc/letsencrypt/archive:/etc/letsencrypt/archive:ro \ | |
-v /etc/letsencrypt/live:/etc/letsencrypt/live:ro \ | |
-v /var/run/docker.sock:/tmp/docker.sock:ro \ | |
jwilder/nginx-proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
first=25601 | |
step=100 | |
while [ $first -lt 130900 ] | |
do | |
./app/console app:patients:load --default_pathname="$first" --default_filename="$step" & wait $! | |
first=$(($first+$step)) | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker-compose up -d | |
# docs say we should run reconfigure at least once | |
sudo docker exec dockerinfrastructure_gitlab_1 gitlab-cal reconfigure | |
# lets check everything is working after first up | |
sudo docker exec dockerinfrastructure_gitlab_1 gitlab-rake gitlab:check SANITIZE=true | |
# restore backup now | |
sudo docker cp 1460934678_gitlab_backup.tar dockerinfrastructure_gitlab_1:/var/opt/gitlab/backups | |
sudo docker exec dockerinfrastructure_gitlab_1 gitlab-ctl stop unicorn | |
sudo docker exec dockerinfrastructure_gitlab_1 gitlab-ctl stop sidekiq | |
sudo docker exec dockerinfrastructure_gitlab_1 chmod -R 775 /var/opt/gitlab/backups |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# It seems the migrations did not complete. Did you run reconfigure again to see if this gets resolved? | |
# Also check gitlab-rake db:migrate:status. You can try to run the migrations manually with gitlab-rake db:migrate. | |
# Make sure postgres is running. | |
gitlab-rake db:migrate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker exec -t <your container name> gitlab-rake gitlab:backup:create |
OlderNewer