15:31:35 <bkm> #startmeeting Testing containers with Tunir 15:31:35 <zodbot> Meeting started Wed Aug 3 15:31:35 2016 UTC. The chair is bkm. Information about MeetBot at http://wiki.debian.org/MeetBot. 15:31:35 <zodbot> Useful Commands: #action #agreed #halp #info #idea #link #topic. 15:31:35 <zodbot> The meeting name has been set to 'testing_containers_with_tunir' 15:31:46 <bkm> Speaker Kushal Das 15:32:14 <bkm> Involved in both Fedora and Python 15:32:29 <bkm> Taskatron used in Fedora 15:32:42 <bkm> Tunir mainly intended for users 15:33:18 <bkm> For developers, want something simpler than Jenkins that would run on laptop and is easy to setup 15:33:41 <bkm> Can use json or ini configuration - 5-6 lines of text 15:33:50 <bkm> Does not require cloud 15:34:20 <bkm> Can take an image, start a virtual machine, do the test, then destroy the setup 15:35:03 <bkm> People also wanted vagrant images, support added 15:35:12 <bkm> Also used for autocloud 15:35:28 <bkm> #link https://apps.fedoraproject.org/autocloud 15:36:01 <bkm> Uses it to test wife's blog node.js setup 15:37:04 <bkm> Containers are another process in computer with restrictions 15:38:00 <bkm> typical workflow: docker pull; docker run 15:38:24 <bkm> Uses redis a lot 15:38:46 <bkm> Redis is a service listening over a fixed port 15:38:54 <bkm> Live DEMO 15:40:10 <bkm> Easy configuration file 15:40:26 <bkm> sudo dnf install docker redis -y 15:40:32 <bkm> sudo service docker start 15:40:39 <bkm> sudo docker pull redis 15:41:00 <bkm> sudo docker run -p 6379:6379 --name some-redis-d reds 15:41:08 <bkm> redis-cli set neme kushal 15:41:12 <bkm> redis start 15:43:43 <bkm> Ran previous commands in a file, and showed startup of redis container with some basic tests 15:46:08 <bkm> Need to be careful when shutting down or rebooting system, exit properly first 15:47:03 <bkm> End of DEMO 15:47:33 <bkm> May want to have own private repository 15:47:47 <bkm> Second live DEMO 15:48:36 <bkm> installs cockpit 15:49:49 <bkm> Starts virtual machine 15:50:13 <bkm> installs Fedora atomic and cockpit 15:50:28 <bkm> runs netstat command 15:50:40 <bkm> makes sure no errors 15:50:45 <bkm> then shuts down 15:50:51 <bkm> -- will add tests later 15:50:56 <bkm> End of DEMO 15:51:27 <bkm> Looking at Kubernetis? using Ansible 15:51:38 <bkm> 3 node setup 15:51:44 <bkm> Multi host DEMO 15:53:18 <bkm> Example from ansible examples, one master and two nodes 15:53:48 <bkm> Tool finds ip addresses and gives this information to the virtual machines 15:54:56 <bkm> Starts 3 virtual machines 15:57:58 <bkm> Successful run 15:58:06 <bkm> end of Multi host DEMO 15:58:20 <bkm> Can also run jobs in Amazon web services 15:59:00 <bkm> have a patch to run similar jobs in OpenStack, but still testing configuration 15:59:51 <bkm> Want to have Json output file 15:59:59 <bkm> #topic Questions 16:00:19 <bkm> Q: How implement vagrant part? 16:01:03 <bkm> A: Step by step vagrant commands issued 16:02:01 <bkm> uses libvirt and passes commands to this. 16:02:09 <bkm> About 1000 lines of Python code 16:02:22 <bkm> #link tunir.readerdocs.io 16:02:55 <bkm> #link https://kushaLdas.in 16:05:26 <bkm> Slides will have links to demo 16:08:23 <bkm> See blog for how to setup demos 16:12:21 <bkm> #endmeeting