Last active
January 11, 2022 22:48
-
-
Save denoww/0434108be6e9eea47bdb8395dddb3fc4 to your computer and use it in GitHub Desktop.
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
_work=~/workspace | |
_sc=$_work/seucondominio/ | |
# Criando atalhos | |
wget https://gist.githubusercontent.com/denoww/4a53c2fe43e67979a433f6ef446d11a2/raw -O ~/.bash_aliases && source ~/.bash_aliases | |
# Clone o repo | |
mkdir -p $_work | |
git -C $_work clone [email protected]:denoww/seucondominio.git | |
git -C $_sc checkout tools | |
# crie .gitignore | |
cp $_sc/gitignore_sample $_sc/.gitignore | |
# crie config/application.yml | |
cp $_sc/config/application_sample.yml $_sc/config/application.yml | |
# crie os arquivos do docker | |
cp $_sc/Dockerfile_sample $_sc/Dockerfile | |
cp $_sc/docker-compose_sample.yml $_sc/docker-compose.yml | |
# pry | |
cp $_sc/.pryrc_sample $_sc/.pryrc | |
# Docker | |
sudo apt-get install -y libpq-dev imagemagick libmagickcore-dev libmagickwand-dev | |
docker build $_sc | |
docker-compose -f $_sc/docker-compose.yml build | |
# cloud66 toolbelt | |
# echo ============================================= | |
# echo Instalando cloud66 toolbelt | |
# echo ============================================= | |
# \curl -sSL https://s3.amazonaws.com/downloads.cloud66.com/cx_installation/cx_install.sh | sudo bash | |
# cx login | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment