#metabrainz

/

      • ruaok
        weird.
      • Gentlecat: I get that when I have /pgdata in my .dockerignore
      • if I have pgdata, then it works fine.
      • Gentlecat
        these volumes are defined in docker-compose.yml
      • you probably need to add them to that command
      • Zastai has quit
      • I never use `docker` directly though, just `docker-compose`
      • ruaok
        I have them defined in my Dockerfile.
      • yeah, I just saw that you have docker-compose for test
      • Gentlecat
        damnit, I hate node so much
      • ruaok
        still working on the gulp bit?
      • Gentlecat
        "Segmentation fault"
      • very useful
      • ruaok
        heh.
      • there was a programming competition I went to one.
      • everyone was a bunch of unix people... except for one team.
      • windows people forced to use linux...
      • during the Q&A session before the contest got started the windows team asks:
      • "What does segmentation fault mean?"
      • everyone died laughing. big time. I felt bad for those guys.
      • colbydray
      • ruaok
        thanks colbydray. :)
      • yeeeargh joined the channel
      • mildused has quit
      • aron_kexp joined the channel
      • regagain joined the channel
      • mildused joined the channel
      • github joined the channel
      • github
        [listenbrainz-server] mayhem pushed 1 new commit to docker-nginx: https://github.com/metabrainz/listenbrainz-serv...
      • listenbrainz-server/docker-nginx 6917d6c Robert Kaye: Undoing some dockerignore changes. Not sure why it behaves strangely
      • github has left the channel
      • github joined the channel
      • [listenbrainz-server] mayhem created docker-test (+1 new commit): https://github.com/metabrainz/listenbrainz-serv...
      • listenbrainz-server/docker-test 643fe27 Robert Kaye: Adding a test docker-compose file
      • github has left the channel
      • diana_olhovyk joined the channel
      • modwizcode
        I accidentally used the source file "averaged_noice.cc" instead of "averaged_noise.cc".
      • :|
      • ruaok
        heh
      • alastairp
        OK. conference reviews finished
      • now to start work for the day
      • Gentlecat
        more papers tomorrow?
      • they never stop coming, right?
      • alastairp
        deadline for paper reviews is tonight
      • so unless I get a last minute one from someone who flaked...
      • diana_olhovyk has quit
      • oh, though there's a 2 day workshop starting tomorrow :)
      • Gentlecat
        somehow I managed to build these static files... manually http://130.211.169.216/
      • doesn't work from dockerfile, idk
      • bitmap: maybe you can spot some error https://github.com/metabrainz/critiquebrainz/bl...
      • bitmap
        what happens when it runs?
      • ruaok
        could it be due to a subtle difference between debian and ubuntu?
      • the python image is build off debian...
      • Gentlecat
        build is just missing
      • bitmap
        you've got node_modules in .dockerignore and then try to access /code/node_modules/.bin/gulp
      • could that be it?
      • ruaok
        ohh, then it wouldn't get transferred to the container... right?
      • Gentlecat
        gulp runs fine though
      • ruaok
        runs fine by hand?
      • do you docker exec and then build by hand?
      • Gentlecat
        it's in the dockerfile
      • ruaok
        ok, then I am confused what the problem is
      • Gentlecat
      • ruaok
        ok, looks good. what is the symptom then?
      • Gentlecat
        no build
      • ruaok
        what does "no build" mean?
      • Gentlecat
        actual scripts and css files
      • they are in the 4b487816a15d
      • ruaok
        and you've logged into the container to check?
      • Gentlecat
        yes, the final one
      • bitmap
        is /code a volume?
      • ruaok
        yes
      • bitmap
        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
      • Gentlecat
        ok, seems to have helped http://130.211.169.216/about
      • armalcolite
        ruaok: saw the ticket on jira and your comments on api_comapt.
      • bitmap
        so I guess you were doing `docker-compose ... build` -> deploy new containers
      • CallerNo6 has quit
      • and the new containers accessed the existing volume which had no static files for some reason
      • armalcolite
        ruaok: should we ignore the listens which result in 4xx and then report it to the user?
      • Gentlecat
        and gulp was running during every build
      • ruaok
        armalcolite: not sure how to report to the user. previously we just ignored them.
      • so do that for now.
      • Leo_Verto
        Freso|koume, nothing from me either
      • Freso|koume is writing up a small essay to compensate for Leftmost and Leo_Verto
      • ruaok
        yaya, Gentlecat!
      • Leo_Verto
        heh
      • ruaok
        what was the issue then?
      • Gentlecat
        no idea
      • ruaok
        git diff?
      • Gentlecat
        I'm trying the opposite now (not copying in dockerfile, keeping the volume)
      • I just removed code volume from compose file
      • armalcolite
        ruaok: ok. (my idea was something like, "1232 listens submitted successfully, 23 listens skipped")
      • ruaok
        armalcolite: yes, please. great idea!
      • bitmap
        it matters if the volume is created before or after the COPY, and if the volume already exists
      • Freso|koume
        chrisskye, hint: when you ask someone to join a conference call at a given time, it might be good to also specify a timezone. ;)
      • chrisskye
        Freso|koume: I did.
      • armalcolite has quit
      • But, it was in a preceding email. Sorry to not clarify.
      • Barcelona GMT+2
      • armalcolite joined the channel
      • Freso|koume
        chrisskye, ah, yes. I don't usually read preceding mails. :) http://www.html-faq.com/etiquette/?toppost
      • ybsar has quit
      • chrisskye
        I’ve never like gmail.
      • Freso|koume
        GMail is fine in that you can access it over IMAP and use a proper e-mail client. ;)
      • Oh, I guess this would be a phone call? No online thing? :|
      • chrisskye
        I’m voicing opinion. I prefer old-fashioned threads.