Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Replace local build with volume-based system #347

Merged
merged 3 commits into from
Sep 12, 2018

Conversation

linuswillner
Copy link
Contributor

@linuswillner linuswillner commented Sep 11, 2018

This proposed change replaces the on-demand builds introduced in 97198dc with a volume-based system. Local builds take considerably longer to perform and are more cumbersome for end users - not to mention they would make an entire step in our CI workflow, publishing the main image to Docker Hub, pointless. The new docker-compose configuration mounts the WildBeast install directory to the main container (wildbeast_wildbeast_1). As a result, changes made to the source code will be reflected in the Docker container immediately (WYSIWYG behaviour) and are available on the public facing side of the bot after a process restart.

This should in my opinion, however, not replace the decoupling process. There are still cases where the decoupling process can be useful, such as when live reloading with programs like Nodemon is warranted - something this volume setup has no answer for. I suggest that the decoupling guide is kept in place as an alternative running mode as a result of this.

In addition, to reflect this change, the decoupling guide has been updated with a notice to reconsider if the process is necessary for the purposes of the reader, in light of already being able to make changes as a result of the volume setup.

* This proposed change replaces the on-demand builds (Which take considerably longer and are more cumbersome for end users) with a system where a volume is mounted such that changes made to the source code will be reflected in the Docker container immediately
* Updated guides in accordance to above
* Misc fixes and updates
@linuswillner linuswillner requested a review from a team as a code owner September 11, 2018 15:16
docker-compose.yml Show resolved Hide resolved
docs/decoupling.md Outdated Show resolved Hide resolved
@Dougley Dougley merged commit ad7236c into experimental Sep 12, 2018
@Dougley Dougley deleted the proposal/docker-volume branch September 12, 2018 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants