-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
feat: basic Docker support #2040
base: main
Are you sure you want to change the base?
Conversation
ARG OS=linux | ||
ARG ARCH=x64 | ||
|
||
FROM ubuntu:24.10 AS dependencies |
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.
arbitrary base image
chmod +x dotnet-install.sh && \ | ||
./dotnet-install.sh --version ${DOTNET_VERSION} --architecture ${ARCH} --os ${OS} | ||
|
||
ENV PATH $PATH:/root/.dotnet |
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.
we have to update the PATH
here so the publish
stage can run the dotnet
commands it needs to run
ARG DOTNET_VERSION | ||
ARG ARCH | ||
|
||
ENV DOTNET_ROOT=/root/.dotnet |
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.
updating the PATH
in the dependencies
stage above doesn't enable the ModernUO
binary to find that installation
instead, we have to set DOTNET_ROOT
before we run the binary
docker-compose.yml
Outdated
volumes: | ||
- "./Distribution/Saves:/bin/modernuo/Saves" | ||
- "./Distribution/Configuration:/bin/modernuo/Configuration" | ||
- "$UO_DIRECTORY:$UO_DIRECTORY" |
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.
tl;dr my UO directory is something like /Users/icculusc/Downloads/UO
, so that's what it is in the modernuo.json
from running it on the metal, this maps it directly to that directory, this is a bad solution to be fair
No description provided.