webone
webone copied to clipboard
Make a Docker build
Hi - This is a really interesting project and I was wondering if this is something that would run on docker on Unraid? You may be able to help people with extra older devices in the house if you consider building a docker container for unraid.
This is an interesting idea, but I haven't used docker at all, so don't know when learn it and make a container for it.
Working with default config (x64): https://gist.github.com/hb9fxq/312001b0f220f6241a6e63361c3d7914 but needs rework to allow configs etc. but maybe a quick-win!?
Some notes from my experience:
-
if using with docker-compose, add
stop_signal: SIGKILL
, as .NET does not behave most of the time, and since this is not a critical process no data should be corrupted by aSIGKILL
-
Sometimes WebOne and/or .NET will just crash. Even with
restart: always
, the container tends to just vanish from my compose with anExited
status. A workaround is to make your entryCMD
point to a shell script that is a simplewhile (true); do /usr/local/bin/webone; done
wrapper. -
Codepages are wonky. The built in override examples (
DOS
,Apple
, etc) seem to work but anything from MSDN does not, includingiso-8859-1
, which is listed as available on the/!codepages/
page.Warning: Unknown codepage iso-8859-1, using AsIs. See MSDN 'Encoding.GetEncodings Method' article for list of valid encodings.
I am not sure what is up with that. I even tried installinglocales
and doinglocale-gen
in myDockerfile
but it did not help. But even so, it also saysCurrent Output Encoding: (whatever is set)
Current Output Encoding: same as source
for some reason, so even if the codepage is acknowledged, I am unsure if it is working, since it is reporting two different things at the same time.
https://github.com/atauenis/webone/discussions/67#discussioncomment-3544805
Canonical has been released Docker packages with Ubuntu & .NET6. Probably, they may be used as base for correct WebOne docker images. https://ubuntu.com/blog/install-dotnet-on-ubuntu https://devblogs.microsoft.com/dotnet/dotnet-6-is-now-in-ubuntu-2204/
Ubuntu based image would be certainly more bulky than Alpine based. What do you mean "...correct WebOne docker images" ?
I am meaning that made from deb package, not from sources. The sources are always latest, but not always stable. Currently I don't know any utilities to make Alpine package on Windows/Visual Studio (like one I'm using for deb/rpm). So stable releases are currently only in deb/rpm formats.
Just found this WebOne after reading this toot https://oldbytes.space/@smallsco/109333356506212028
Certainly interested in a docker image and agree Ubuntu see a little top heavy.
Made one (#108) and finding this issue afterwards 😅 feel free to test and give me feedback, cheers!