afaik it only copies files to the volume during build if it doesn't exist already
2016-06-27 17907, 2016
kartikgupta0909 joined the channel
2016-06-27 17951, 2016
bitmap
once the volume is created it persists outside the build
2016-06-27 17923, 2016
ruaok
so maybe the /code should not be a volume?
2016-06-27 17908, 2016
bitmap
if you don't need other containers to access it
2016-06-27 17950, 2016
ruaok
I don't see why anyone else would need to access /code
2016-06-27 17902, 2016
bitmap
otherwise you shouldn't expect `docker build` to ever update it
2016-06-27 17953, 2016
bitmap
that's just the initial state if the volume doesn't exist
2016-06-27 17923, 2016
bitmap
for mbs we need the nginx container to be able to access the code, so it's in a volume
2016-06-27 17935, 2016
bitmap
to deploy new code I have to run a script like `docker exec f50a235e34d0 /deploy/musicbrainz-server/script/deploy.sh production`
2016-06-27 17950, 2016
ruaok
interesting.
2016-06-27 17900, 2016
bitmap
which works because it's on a running container that has the volume mounted
2016-06-27 17902, 2016
ruaok
Gentlecat: you should really try without the code bit and see if that improves.
2016-06-27 17951, 2016
ruaok
because if that fixes it, then bitmap needs to solve this problem too.
2016-06-27 17931, 2016
ruaok changes venues
2016-06-27 17922, 2016
kanha joined the channel
2016-06-27 17947, 2016
bitmap
probably no way to solve it for mbs without having nginx on the gateways make requests directly to plackup
2016-06-27 17936, 2016
bitmap
which is bad 'cause the perl would have to handle static files, proxy_pass stuff, etc...
2016-06-27 17919, 2016
Gentlecat
I'm still not sure if it's related to volumes
2016-06-27 17947, 2016
Freso|koume
modwizcode, took me a few seconds to spot the difference :p
2016-06-27 17948, 2016
Gentlecat
if gulp runs, then the files would just stay in a volume
2016-06-27 17940, 2016
modwizcode
lol
2016-06-27 17914, 2016
bitmap
I'll try running it since I'm not really sure either
2016-06-27 17950, 2016
Gentlecat
let me confirm if it removing it solves the issue
2016-06-27 17914, 2016
Gentlecat
but as you said, then there's no way for nginx to access these files
2016-06-27 17914, 2016
bitmap
ok
2016-06-27 17909, 2016
Gentlecat removes all images just in case
2016-06-27 17944, 2016
Freso|koume
Order of business tonight: Freso, reosarevok, bitmap, Gentlecat, zas, ruaok, chrisskye, LordSputnik, Leftmost, Leo_Verto, alastairp, rahulr, QuoraUK, armalcolite, hellska, kartikgupta0909, cetko - if anyone wants in/out, ping me.
2016-06-27 17906, 2016
Freso|koume
(~1½ hour to go)
2016-06-27 17912, 2016
Gentlecat
monday again? time kind of goes fast now
2016-06-27 17918, 2016
Gentlecat
:(
2016-06-27 17924, 2016
Freso|koume
Ikr.
2016-06-27 17911, 2016
Freso|koume
This is going to be my one set day-of-the-week now where I *have* to be somewhere/do something for the rest of the summer. :|
2016-06-27 17944, 2016
Leo_Verto
or you could automate it :P
2016-06-27 17946, 2016
Gentlecat
bitmap: one thing that seems wrong is that I have that volume with code defined and then in a dockerfile there is `COPY . /code/`
2016-06-27 17913, 2016
Gentlecat
didn't notice that for some reason
2016-06-27 17928, 2016
Freso|koume
Leo_Verto, I would still need to be here.
2016-06-27 17934, 2016
Leftmost
Freso|koume, I have no updates today.
2016-06-27 17958, 2016
bitmap
ah, so the volume is defined in the compose file
2016-06-27 17903, 2016
gcilou
Freso|koume: I leave for a 2 week summer camp on Saturday, I'll be around before then, and probably during too (I'll have my laptop).. so if there's anything I can do that you've seen around, let me know
2016-06-27 17914, 2016
Freso|koume
Also, this is my one anchor to keep my "week rhythm" from becoming completely fluid.
2016-06-27 17916, 2016
bitmap
idk what order that runs in then
2016-06-27 17917, 2016
Freso|koume
gcilou, 👍
2016-06-27 17912, 2016
bitmap
in the Dockerfile if VOLUME appears after the copy it'll use whatever files were copied as the initial state