Serve master.cfg from a config nginx service #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm mainly submitting this PR to get a discussion going about a different way to handle serving
master.cfg
in the Buildbot tutorial with Docker.The current tutorial requires users to create a completely separate repository for the
master.cfg
file, push it to GitHub, then tweak theirdocker-compose.yml
files to point to themaster.tar.gz
file in that repository.That's a lot of steps, and I think it could be much easier if you just have the user fire up a
config
service that servers the user's localmaster.cfg
file to the Buildbot master. This PR enables this behavior. If the user updatesmaster.cfg
they just have to restart the services for the change to take effect, instead of switching to a different repo, making the change, committing the change, pushing the change, and restarting the services.This PR does not update the tutorial. The
config
service is just annginx
server, and is configured exactly how the official nginx Docker repository suggests. There is no authentication for downloading themaster.cfg
file from theconfig
service, but the fact that it runs in the same docker network as the rest of the current services and doesn't require the user to make theirmaster.cfg
configuration file public is a security and usability win in my book.This eases the learning curve to getting a Buildbot server up and running, and gives the user hints as to how to host the configuration file "for real" if they need to scale up.
Even easier than this would be to share the config directory on the host with the master service and use a
file://
URL to point to the config file, but that might complicate more things.Your thoughts?