Thursday, 2018-11-29

*** e0ne has joined #openstack-loci07:10
*** dims has quit IRC08:32
*** dims has joined #openstack-loci08:33
evrardjphogepodge: good question :)09:33
evrardjphogepodge: do you count giving your opinion, or wait for our feedback?09:33
evrardjpshould we decide to tag our images with versions, we'll probably be clear about the branching strategy too.09:34
*** e0ne has quit IRC12:53
*** e0ne has joined #openstack-loci13:31
evrardjpI also have an idea on how to simplify the image building, removing many of the previous dockerfiles (per distro), removing the base->requirements->project and keeping only one Dockerfile using multi-staged builds.14:28
evrardjp(without changing the interface on the users)14:29
hrwevrardjp: how?14:32
evrardjphrw: https://docs.docker.com/develop/develop-images/multistage-build/14:36
evrardjpCOPY distro/install-${DISTRO}.sh for example in stage 0. That would provide a base image that's fine. stage 1 would be requirements for said stage0. stage2 would build with wheels from stage1.14:37
evrardjpno need to have fancy fetch wheels anymore, reducing the amount of code to ship.14:37
hrwso loci-base -> requirements -> cinder/horizon/etc14:38
hrwlooks sane14:39
evrardjpyeah.14:39
evrardjpalso it means it's tightly coupled, which makes it super easy for releasing14:39
evrardjpif we force this path, there is no reuse of requirements, so it might be loci base > requirements + anything > copy from requirements > projects14:40
hrwevrardjp: but can it be used to generate several images?14:41
evrardjpBut I like the simplicity of everything in a file.14:41
evrardjphrw: exactly like it is now14:41
hrwcause doc looks like 'lets build few images in a row but release last one'14:41
evrardjphrw: it's just adding a few extra things on top, removing other files.14:41
hrwevrardjp: requirements image is time saver on arm6414:42
hrwif I have to builds wheels per each image then I will be against14:42
hrwnow it is: base, requirements, projects14:42
evrardjpI have to test if COPY can accept an argument14:43
hrwif multistage will be: for project in cinder horizon etc;do docker build 'base->requirements->$project';done - then I am against14:43
evrardjp(if it can, we can go for multistage with everything in one file)14:43
evrardjp(if it cannot, it will have to be split into two things: base + requirements, projects)14:44
evrardjpI see14:44
hrwso nothing change basically14:44
evrardjpre-using code from docker instead of writing our own :)14:44
hrwas now we say "do own base" and requirements do not have to use that base as it generate only wheels14:45
evrardjpand wrapping that with plays/shell scripts sounds bad14:45
evrardjprequirements building should happen on the same kind of host as final image14:45
evrardjpelse you can have mistmatching libs14:46
hrwevrardjp: https://git.linaro.org/ci/job/configs.git/tree/ldcg-loci/build.sh is my simplest way of building whole loci14:46
evrardjplibvirt would probably be a nuisance for example14:46
hrwbase, requirements, projects14:46
hrwone after another in one CI job14:46
evrardjpyeah, at the same time, it already work, so why change it :)14:47
hrwthat multistage thing will be nice if one 'docker build' could generate several outputs14:47
hrwsorry to ruin your idea14:50
evrardjpit's fine :)15:19
evrardjpthat's why we are here to talk about it15:19
evrardjpless work for me too :)15:19
hrwD15:20
hrw:15:20
*** munimeha1 has joined #openstack-loci15:53
*** e0ne has quit IRC16:26
*** e0ne has joined #openstack-loci16:38
*** e0ne has quit IRC16:48
*** e0ne has joined #openstack-loci20:20
*** e0ne has quit IRC20:30
*** dhellmann_ has joined #openstack-loci23:26
*** dhellmann has quit IRC23:26
*** dhellmann_ is now known as dhellmann23:30
*** pbourke has quit IRC23:46
*** pbourke has joined #openstack-loci23:47
*** munimeha1 has quit IRC23:50

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!