Self-Contained Deployment (Rach Belaid)

Notes taken during a presentation given by Rach Belaid at PyConUK 1620 on Friday Look up immutable server concept Docker for devs and administration Packer https://www.packer.io/ Vagrant docker Ansible http://www.ansible.com/ He shows various ways to deploy the docker app Supervisord used in docker to run many processes Baby steps approach to moving to docker. Normally one container per process Isolation / sandbox

» Read more

Docker

James Google input Even finance companies are considering it Only a young project What Packaging 1 app = 1 container What’s the diff Uses less space,  only store what is necessary Start instantaneously Use cases : Development Test prod architecture Can combine with Jenkins CI CD Can use base images And then keep the docker configuration file clean Is command […]

» Read more

The Twelve-Factor App by Kristian Glass

Notes taken during a talk at PyConUK #1 one code repo many deploys #2 what about declaring your dependencies, e.g. gcc compiled items, deply containers #3 read config from environment debug flag, db connections etc avoids secret leakage, add defaults make it language independent populating env – foreman, supervisor (d?), ansible, bash -whatever etc doismellburning – django app www.doismellburning. co.uk […]

» Read more

Performance

Notes taken during a Performance talk given at PyConUK. function calls c method instead cython instead Use operators Loops Avoid list comprehension is quicker than for loop over an emnumerator What is op? xrange vs range – no wasted memory NB: In python3 renamed range itertools Or use a c extension mstexttools Sorting l.sort vs sorted() – any iterator Key based: […]

» Read more

A Pinch of Salt by Scott Walton

Scott Walton gave a talk about how they use Salt, at their company Pebble. Slides can be found here: https://docs.google.com/presentation/d/1q82GUdE-zHUlTSYJxkIdW79CcewO3-KXuBwPe9ir_aA/edit#slide=id.p Salt is a remote config management tool, similar to: Ansible, Puppet, Chef. It seems from talks with others at PyConUK Ansible and Salt were being described more favourably than Puppet and Chef.  Either due to their complexity or through battle testing […]

» Read more
1 2 3