Questions?
4. How did you like this presentation?
A. I liked it and I would start using gitflow, vagrant and ansible in real life.
B. It was perfect - I would start using gitflow, vagrant and ansible in real life.
C. It was fantastic I would start using gitflow, vagrant and ansible in real life.
D. I was very poor, but nevertheless I would start using gitflow, vagrant and ansible in real life.
The magic of
runserver.sh
kuba.wasielak@gmail.com
Not finished!
vagrant ssh -c "/env/bin/python /vagrant/src/manage.py runserver 0.0.0.0:8000
Thank you.
3. How do you declare a variable in ansible?
A. what = love
B. what: love
C. what := love
D. what is love
Getting serious:
Vagrantfile
2. How to build our latest changes (for example install new requirement) on vagrant environment?
A. vagrant up
B. vagrant provision
C. vagrant reload
D. try turning it off and on again
Getting started
with this little quiz.
1. How should you create feature branches?
A. git checkout -b feature/<feature-name> from master branch
B. git checkout -b feature/<feature-name> from develop branch
C. git checkout -b feature/<feature-name> from any release branch
D. sudo make feature branch
Foundations
Let's check, what you've learned
Managing the chaos
Jakub Wasielak
Operating systems:
All you need is:
One person
One computer
One code
Zero conflicts
The ultimate
answer:
Two people
Two computers
Two versions
Dude, you overwrote my code
Ten people
14 computers
41 versions
Help?
or simple:
[dev]
172.16.0.120
If you do it manually for the second time, it should be the last one
ansible-playbook -i dev develop.yml
vagrant provision
The deployment
(and provisioning)
Project structure
pip, git, PostgreSQL, Django, apt, npm...
Overall 575 official modules.
And a whole galaxy to explore.
Playbook
Inventory
Modules
Variables
Let's go!
The output
Roles
Git can be simple
or not
Introducing gitflow
git branch develop
git push -u origin develop
Master + Develop
git flow init
git checkout -b feature/PROJ-01-payments
git flow feature start PROJ-01-payments
Feature branches
SYNC
git checkout develop
git pull
git checkout -
git merge -
git checkout -b release/v0.1.0 develop
git flow release start v0.1.0
Releases
git checkout -b hotfix/PROJ-6 master
git checkout master
git merge hotfix/PROJ-6
git push
Hotfixes
git flow hotfix start VERSION
https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow
Much more on: