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

Docker support #37

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Docker support #37

wants to merge 4 commits into from

Conversation

daitangio
Copy link

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!

Copy link
Collaborator

@distantorigin distantorigin left a 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
Copy link
Collaborator

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
Copy link
Collaborator

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:
Copy link
Collaborator

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.

Copy link
Author

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

context: .
ports:
- 7777:7777
- 8888:8888
Copy link
Collaborator

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].

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

daitangio and others added 2 commits February 21, 2021 15:32
libargon is already installed

Co-authored-by: distantorigin <tbussiere@icloud.com>
Removed debug code
Explained how to change mapped port
@daitangio
Copy link
Author

Added modification as requested.
Review at will :)

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.

2 participants