webone icon indicating copy to clipboard operation
webone copied to clipboard

Make a Docker build

Open ashaikh opened this issue 3 years ago • 9 comments

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.

ashaikh avatar Dec 08 '20 04:12 ashaikh

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.

atauenis avatar Dec 08 '20 10:12 atauenis

Working with default config (x64): https://gist.github.com/hb9fxq/312001b0f220f6241a6e63361c3d7914 but needs rework to allow configs etc. but maybe a quick-win!?

hb9fxq avatar Jan 09 '21 14:01 hb9fxq

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 a SIGKILL

  • Sometimes WebOne and/or .NET will just crash. Even with restart: always, the container tends to just vanish from my compose with an Exited status. A workaround is to make your entry CMD point to a shell script that is a simple while (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, including iso-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 installing locales and doing locale-gen in my Dockerfile but it did not help. But even so, it also says Current 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.

zefie avatar Jan 11 '22 07:01 zefie

https://github.com/atauenis/webone/discussions/67#discussioncomment-3544805

atauenis avatar Sep 07 '22 11:09 atauenis

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/

atauenis avatar Sep 10 '22 21:09 atauenis

Ubuntu based image would be certainly more bulky than Alpine based. What do you mean "...correct WebOne docker images" ?

way5 avatar Sep 12 '22 05:09 way5

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.

atauenis avatar Sep 12 '22 08:09 atauenis

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.

aptonline avatar Nov 12 '22 23:11 aptonline

Made one (#108) and finding this issue afterwards 😅 feel free to test and give me feedback, cheers!

nefarius avatar Dec 03 '23 20:12 nefarius