-
Notifications
You must be signed in to change notification settings - Fork 28
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
Docker support #37
base: master
Are you sure you want to change the base?
Docker support #37
Conversation
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.
Thank you for your contribution! Great to see work done towards dockerizing the server.
Before I merge your additions, can you please review my requested changes below?
- Ubuntu has a virtual package for Libargon2; the build step can be removed.
- Server ports should be configurable.
- Consider making an env file for core database (CORE_TO_LOAD), port, and other potential values that may be changed.
Dockerfile
Outdated
RUN ls /toaststunt/CMakeModules | ||
|
||
|
||
# PRE ARGON BUILD |
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.
Ubuntu 20.10 has a virtual package for Libargon2 - building is not required. (In retrospect, the project readme should also be updated to reflect this.)
Dockerfile
Outdated
|
||
COPY CMakeLists.txt /toaststunt/ | ||
COPY CMakeModules /toaststunt/CMakeModules | ||
RUN ls /toaststunt/CMakeModules |
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 seems to be left over debugging - can we remove?
image: toaststunt:2.7.0_10 | ||
build: | ||
context: . | ||
ports: |
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.
Server port should be configurable via environment variables.
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.
Server port can be re-mapped outside container using the ports syntax.
See comments in the new commit ea4ca08
docker-compose.yml
Outdated
context: . | ||
ports: | ||
- 7777:7777 | ||
- 8888:8888 |
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.
Consider removing this extra port - see above [line 8].
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.
Removed
libargon is already installed Co-authored-by: distantorigin <tbussiere@icloud.com>
Removed debug code Explained how to change mapped port
Added modification as requested. |
Hi,
I am very happy to see an evolving Moo out of there :)
I was working on a plain Lambdamoo and I added docker support.
So I ported it to this version :)
Have a nice day!