verm__ changed the topic of #buildbot to: A Software Freedom Conservancy Project | Buildbot-3.5.0 | docs: http://docs.buildbot.net/current/ | tutorial: http://docs.buildbot.net/current/tutorial | irclogs: https://libera.irclog.whitequark.org/buildbot
manx has quit [Ping timeout: 246 seconds]
manx has joined #buildbot
aakashjain has joined #buildbot
manx has quit [Ping timeout: 250 seconds]
aakashjain has quit [Ping timeout: 250 seconds]
manx has joined #buildbot
<razrdog[m]> <glogan> "For example, what the heck..." <- I agree. That's certainly not intuitive
<razrdog[m]> <glogan> "I'm wondering if it doesn't *..." <- I'm not an expert on anything docker related. But I can take some guesses. So custom context is you providing a file or something to be copied into the docker at build time?
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 250 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 276 seconds]
wielaard is now known as mjw
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 265 seconds]
<glogan> When building a docker image, you have a root directory from which all reference have to be made. This is the same directory as the 'Dockerfile'.
<glogan> with custom_context == False, looking at the code the docker client is being fed a .read() of an object being built in memory
<glogan> which, like, cool. But what's the CWD of the build? :)
<glogan> I guess that's what I'm actually asking. I've tried the master's home dir, the config dir, nothing seems to work
<glogan> this is complicated by these builds occurring on remote docker instances on other machines
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 276 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Remote host closed the connection]
aakashjain has joined #buildbot
<razrdog[m]> I'm looking at it and it looks like you do need to be able to provide custom context. I'm not sure why that's the selector for using inline docker files or not. Seems like a bad test.
<razrdog[m]> So this would be a bug in the latent docker implementation where we want to select based on something other can custom context existing. I imagine its probably pretty easy to tell if something is a file path or a string containing a dockerfile and we should do the if else based on that.
<razrdog[m]> I suppose by default the path would be . so wherever the docker daemon is being executed from on your remote machine may be where the build is occurring.
<razrdog[m]> Perhaps looking at /proc/<pid>/cwd on the docker machine. Replacing pid with the paid of the docker daemon. That should be a symlink to the cwd used by docker and is "maybe" where the build is occurring.
<glogan> doesn't seem to be the right place
<glogan> tried the worker's path when viewed from both inside and outside the container, on both machines
<glogan> oh. hell. I wonder
<glogan> So, the master is also a docker container
<glogan> wanna bet the fileneeds to be in the master's internal context path?
<glogan> nope, that doesn't work either
<glogan> not inside the master's root, the buildbot venv root, or the config root
aakashjain has quit [Remote host closed the connection]
aakashjain has joined #buildbot
aakashjain has quit [Remote host closed the connection]
aakashjain has joined #buildbot
aakashja_ has joined #buildbot
aakashjain has quit [Read error: Connection reset by peer]
mjw has quit [Killed (NickServ (GHOST command used by markw!~wielaard@gnu.wildebeest.org))]
wielaard has joined #buildbot
<dottedmag> Does anyone know the API endpoint to create a buildset? https://docs.buildbot.net/latest/developer/raml/buildset.html is not helpful, all it says is cryptic "All update methods are available as attributes of master.data.updates"
<dottedmag> POST-ing to /buildsets does not seem to work either
aakashja_ has quit [Remote host closed the connection]
aakashjain has joined #buildbot
aakashjain has quit [Remote host closed the connection]
aakashjain has joined #buildbot
aakashjain has quit [Remote host closed the connection]
aakashjain has joined #buildbot