View colorized_logs.sh
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 | |
log () { | |
local red=$'\e[1;31m' | |
local yll=$'\e[1;33m' | |
local grn=$'\e[1;32m' | |
local blu=$'\e[1;34m' | |
# local mag=$'\e[1;35m' | |
# local cyn=$'\e[1;36m' | |
# local white=$'\e[1;37m' |
View startvm.sh
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 Argument | |
START=$1 | |
#Checking if exist argument. | |
if [ -z $START ]; then | |
echo "Please supply one argument with VM Name" | |
echo "Example: $0 docker" | |
exit 1 |
View backup_gitlab.sh
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 | |
############################################################################# | |
## Nome: Gitlab-Backup ## | |
## Função: SCRIPT PARA AUTOMAÇÃO DE BACKUP DE ## | |
## UM GITLAB SERVER EXECUTADO EM DOCKER. ## | |
## PODE SER UTILIZADO PARA USO EM CRONTAB, POIS COLETA A ID CONTAINER. ## | |
## Linguagem: Shell Script ## | |
## ## | |
## OBRIGADO PELO APOIO ## |
View Vagrantfile
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
Vagrant.configure("2") do |config| | |
config.vm.hostname = "docker" | |
config.vm.box = "centos/7" | |
config.vm.provision :shell, path: "install.sh" | |
config.vm.provider "virtualbox" do |virtualbox| | |
virtualbox.customize [ "modifyvm", :id, "--cpus", "1" ] | |
virtualbox.customize [ "modifyvm", :id, "--memory", "600" ] | |
end | |
end |
View install.sh
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 | |
## Escolha abaixo o que será instalado !! | |
## 0 = Não, 1 = Sim | |
docker=1 | |
ansible=1 | |
## Caso haja proxy, favor definir abaixo | |
proxy=COLOCAR_IP_DO_PROXY | |
porta=COLOCAR_PORTA_DO_PROXY |
View rancher-get-info.sh
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/sh | |
usage(){ | |
echo "Usage: $0 ACCESS_KEY ACCESS_SECRET CONATAINER_ID" | |
exit 1 | |
} | |
# call usage() function if filename not supplied | |
[[ $# -ne 3 ]] && usage |