| Version | Date | Notes | By |
|---|---|---|---|
| 0.2 | 2018-08-17 | Some fixes. Added tips section | JFM |
| 0.1 | 2018-08-13 | Initial release | JFM |
Since August 2018 this is the preferable way to create your development environment
This script was tested with Ubuntu 18.04 and Linux Mint 19.
sudo apt update && sudo apt upgrade
sudo apt install git software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt update && sudo apt install ansible
ansible --version
Don't create a key without a passphrase. As always use a strong password
ssh-keygen -t rsa -C "your.email@wemake.pt" -b 4096
Got to your SSH keys account setting on gitlab.wemake.pt, paste the contents of your public key (usually in ~/.ssh/id_rsa.pub) and add the key
Test it and accept the host (this is needed)
ssh -p 5022 -T git@gitlab.wemake.pt
The script is configured to install sgiv10 on the folder ~/devel/apps/ by default. You can change this, but to maintain some stantard with our development environment its better to leave as it is.
git clone ssh://git@gitlab.wemake.pt:5022/it/ansible/dev-install.git
Usually you just need to configure the first to variables
You can also configure your own github_token to work with jspm if you want. The default one is from my account :D
You can add extra packages to install by uncommenting the extra_packages variable, just be sure the packages exists in ubuntu repositories. Some examples are included
ansible-playbook playbook.yml -i hosts --ask-become-user
When working on new projects you need to add them to apache configuration. Later I will right a script for this, but right now, after you clone the project you can do the following:
sudo a2ensite project_name*sudo systemctl reload apache2