-
Notifications
You must be signed in to change notification settings - Fork 522
feat: dockerize (with requested changes) #2392
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
Conversation
A barebones [dockerfile](./dockerfile) is supplied to run the site within a local Docker Container through [Docker Desktop](https://docs.docker.com/desktop/) - a simple, free, way to easily setup Docker and Python without leaving beyond installations, modifying your underlying Operating System, and changing Environment Variables. | ||
|
||
1. Make sure Docker Desktop is running and started | ||
1. Build the Docker Image from the root directory with the command: `docker build -t wtd .` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@plaindocs - I tweaked the recommended build per your prior comment here: #2379 (comment) - loved that suggestion - thanks!
|
||
RUN chmod +x make.bat | ||
|
||
# The following CMD is run every time the Container starts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually took a bit - thought I could simply copy over my prior BASH script but it seems I need to/should reset the WORKDIR to use CMD (over ENTRYPOINT) for a slightly more succinct command.
sphinx-autobuild --port 8888 -j auto --watch _data -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/html | ||
|
||
# Used solely to bind sphinx to the Docker Container - to do so requires deliberately setting --host "0.0.0.0" | ||
dockerhtml: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added comments per request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Thanks for the fixes |
Hello! I've gone ahead and Dockerized the repo. I've also addressed issues, suggestions, and concerns raised here: #2379 (and made a new PR - apologies, I thought this might get a bit more involved but the solution ended up being a bit more elegant/made some typos/excessive errata's in the last "draft").
📚 Documentation preview 📚: https://writethedocs-www--2392.org.readthedocs.build/