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

feat: basic Docker support #2040

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

feat: basic Docker support #2040

wants to merge 9 commits into from

Conversation

IcculusC
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Dec 31, 2024

Qodana for .NET

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Detected 20 dependencies

Third-party software list

This page lists the third-party software dependencies used in ModernUO

Dependency Version Licenses
Argon2.Bindings 1.16.1 MIT
BouncyCastle.Cryptography 2.5.0 MIT
CommunityToolkit.HighPerformance 8.4.0 MIT
LibDeflate.Bindings 1.0.2.120 GPL-3.0-only
MailKit 4.9.0 MIT
Microsoft.Extensions.FileSystemGlobbing 9.0.0 MIT
MimeKit 4.9.0 MIT
ModernUO.CodeGeneratedEvents.Annotations 1.0.0 GPL-3.0-only
ModernUO.CodeGeneratedEvents.Generator 1.0.3.2 GPL-3.0-only
ModernUO.Serialization.Annotations 2.9.1 GPL-3.0-only
ModernUO.Serialization.Generator 2.12.18 GPL-3.0-only
Nerdbank.GitVersioning 3.7.112 MIT
PollGroup 1.6.1 BSD-3-Clause
Serilog.Sinks.Async 2.1.0 Apache-2.0
Serilog.Sinks.Console 6.0.0 Apache-2.0
Serilog 4.2.0 Apache-2.0
System.Formats.Asn1 8.0.1 MIT
System.IO.Hashing 9.0.0 MIT
System.Security.Cryptography.Pkcs 8.0.1 MIT
Zstd.Binaries 1.6.0 MIT
Contact Qodana team

Contact us at qodana-support@jetbrains.com

ARG OS=linux
ARG ARCH=x64

FROM ubuntu:24.10 AS dependencies
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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

volumes:
- "./Distribution/Saves:/bin/modernuo/Saves"
- "./Distribution/Configuration:/bin/modernuo/Configuration"
- "$UO_DIRECTORY:$UO_DIRECTORY"
Copy link
Contributor Author

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

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.

1 participant