afaik it only copies files to the volume during build if it doesn't exist already
kartikgupta0909 joined the channel
once the volume is created it persists outside the build
ruaok
so maybe the /code should not be a volume?
bitmap
if you don't need other containers to access it
ruaok
I don't see why anyone else would need to access /code
bitmap
otherwise you shouldn't expect `docker build` to ever update it
that's just the initial state if the volume doesn't exist
for mbs we need the nginx container to be able to access the code, so it's in a volume
to deploy new code I have to run a script like `docker exec f50a235e34d0 /deploy/musicbrainz-server/script/deploy.sh production`
ruaok
interesting.
bitmap
which works because it's on a running container that has the volume mounted
ruaok
Gentlecat: you should really try without the code bit and see if that improves.
because if that fixes it, then bitmap needs to solve this problem too.
ruaok changes venues
kanha joined the channel
bitmap
probably no way to solve it for mbs without having nginx on the gateways make requests directly to plackup
which is bad 'cause the perl would have to handle static files, proxy_pass stuff, etc...
Gentlecat
I'm still not sure if it's related to volumes
Freso|koume
modwizcode, took me a few seconds to spot the difference :p
Gentlecat
if gulp runs, then the files would just stay in a volume
modwizcode
lol
bitmap
I'll try running it since I'm not really sure either
Gentlecat
let me confirm if it removing it solves the issue
but as you said, then there's no way for nginx to access these files
bitmap
ok
Gentlecat removes all images just in case
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.
(~1½ hour to go)
Gentlecat
monday again? time kind of goes fast now
:(
Freso|koume
Ikr.
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. :|
Leo_Verto
or you could automate it :P
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/`
didn't notice that for some reason
Freso|koume
Leo_Verto, I would still need to be here.
Leftmost
Freso|koume, I have no updates today.
bitmap
ah, so the volume is defined in the compose file
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
Freso|koume
Also, this is my one anchor to keep my "week rhythm" from becoming completely fluid.
bitmap
idk what order that runs in then
Freso|koume
gcilou, 👍
bitmap
in the Dockerfile if VOLUME appears after the copy it'll use whatever files were copied as the initial state