Giter VIP home page Giter VIP logo

Comments (21)

cprosser avatar cprosser commented on July 19, 2024 2

@emcniece it definitely fixed the issue for me!

from dockeryourxyzzy.

emcniece avatar emcniece commented on July 19, 2024 1

Update: trying to provision a Windows machine to test on. I haven't forgotten about this!

from dockeryourxyzzy.

emcniece avatar emcniece commented on July 19, 2024

That first standard_init_linux.go:190: exec user process... error usually happens when Docker containers are run on a platform other than the one they were built on. I have built these images on MacOS, so I might guess that you're encountering this on Windows - is that correct? We may have to look at cross-compilation and pushing architecture-specific images to Docker hub.

Sounds like you're on the right track with building it locally! You should be able to build the dev image (via docker build -t <tag> --target dev) and create a functional image. Note the --target dev here: this is important as the Dockerfile is multi-stage and will build the entire Dockerfile unless otherwise specified. Building the full (or "runtime") image might not be desired as you want to debug this stack right now, so try --target dev.

Lastly, where did jre1tomcat7 come from? I don't see that in the repo, did I make a typo somewhere? That should definitely be jre8tomcat7.

Give the docker build -t <tag> --target dev a shot and see if it comes up. It can take a few minutes to build after you execute docker run ... so watch the logs on that container. Also look at overrides/build.properties and make sure that the hibernate.* defs are using the SQLite block and not the Postgres options - this should simplify the debug process.

from dockeryourxyzzy.

XenHat avatar XenHat commented on July 19, 2024

Hi, thank you for replying. I cannot find jre1 either, that might have been an accidental change on my end. I have numpad bound to my mouse, haha..

I had no success using the dev target before posting the issue but I'll give it another shot today and see what I can find out and what info I can relay back

from dockeryourxyzzy.

XenHat avatar XenHat commented on July 19, 2024

Should I be worried about this test failing?

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running net.socialgamer.cah.util.ChatFilterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.113 sec
Running net.socialgamer.cah.data.GameTest
log4j:WARN No appenders could be found for logger (net.sf.uadetector.internal.data.DataBuilder).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.617 sec
Running net.socialgamer.cah.data.GameManagerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.368 sec
Running net.socialgamer.cah.ConstantsTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec

Here's the output after a full rebuild and run:

Removing intermediate container 7047409e53f7
 ---> fd60b450c3ce
Successfully built fd60b450c3ce
Successfully tagged pyx-new-test:latest
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
PS D:\code\apps\pyx-docker> docker run pyx-new-test
standard_init_linux.go:190: exec user process caused "no such file or directory"
PS D:\code\apps\pyx-docker>

from dockeryourxyzzy.

emcniece avatar emcniece commented on July 19, 2024

Woah, thanks for the logs. The tests are fine, that's related to the codebase and is outside the scope of this repo.

The standard_init_linux.go:190: exec user process caused error is again the result of something in this Docker image that is incompatible with the platform architecture. We'll need to figure out which of these pieces isn't compatible.

What OS are you using? Are you building and deploying on the same OS?

from dockeryourxyzzy.

XenHat avatar XenHat commented on July 19, 2024

I am building on Windows 10 x86_64, and deploying on Docker for Windows, using Linux-based containers, on the same machine.

The dockerhub-provided image (from yours) is working fine, but I needed to add some card sets so I need to build my own. So it's not entirely incompatible, I think. Probably some recent change?

from dockeryourxyzzy.

XenHat avatar XenHat commented on July 19, 2024

@emcniece Any progress? I have a community event planned and I need this to work. We'll have to use something else for now but I still am interested in getting this to work.

More info if you need them:

image
image
I do have a haswell laptop running Linux I can try to build the image on as well.

from dockeryourxyzzy.

emcniece avatar emcniece commented on July 19, 2024

Apologies, no progress debugging this yet. Perhaps this weekend.

Have you looked at adding custom cards through Cardcast? I can confirm that this works, but I didn't build my own deck.

That... is quite the machine you have there.

from dockeryourxyzzy.

XenHat avatar XenHat commented on July 19, 2024

I'll give that a try in the meantime, thanks!

That... is quite the machine you have there.

I game, stream, and develop software. It's barely enough power! hahaha.

from dockeryourxyzzy.

XenHat avatar XenHat commented on July 19, 2024

Update: I have spent some more time investigating.
the release mode container does not work either.
I have to use dev mode
image

EDIT: Not shown:

docker run --name="xyzzy" -d -p 777:8080 emcniece/dockeryourxyzzy:run
docker run -d -p 666:8080 --name pyx-dev emcniece/dockeryourxyzzy:dev

from dockeryourxyzzy.

emcniece avatar emcniece commented on July 19, 2024

Thank you so much for the detailed reports! Sorry this isn't in a more functional state right now.

from dockeryourxyzzy.

XenHat avatar XenHat commented on July 19, 2024

No worries, I hope we can figure this together.

from dockeryourxyzzy.

XenHat avatar XenHat commented on July 19, 2024

Building a local container with dev as the target also produces a non-working product.
Or perhaps I don't understand how to use the built product?

Build log:
https://gist.github.com/59dc8f14be819b0afe2b77619cd6fa3d

from dockeryourxyzzy.

XenHat avatar XenHat commented on July 19, 2024

hey @emcniece have you been able to make progress on this yet? I really don't want to run the code directly on my machine...

from dockeryourxyzzy.

emcniece avatar emcniece commented on July 19, 2024

Ah, I haven't yet, sorry. BUT I have a week off starting tomorrow - I'll prioritize this and report back asap!

from dockeryourxyzzy.

emcniece avatar emcniece commented on July 19, 2024

From another user:

Having the same issue on a raspi zero w. It looks to me like there is some issue with the alpine linux base image to me. Every image after that has some trouble with installing the apk packages.

Yes, the base docker image needs to be built for the destination platform for each container along the way. This is problematic though as this repo inherits a number of images:

Each of these images needs to be built for the desired platform, then they all need to inherit the previous image for the same platform. They're all built for a Linux target right now, and they need to be switched to ARM or Windows.

The very base Alpine image has an option for ARM, but I haven't figured out if it's possible to build for Windows yet.

The irony of this Java application being extremely difficult to compile for cross-platform operation is not lost on me.

from dockeryourxyzzy.

emcniece avatar emcniece commented on July 19, 2024

Hello again, 2 years later. I've just pushed emcniece/dockeryourxyzzy:3 which fixes some Docker image problems. No clue if it will work on Windows, and I'm not sure what kind of Docker VM progress has been made since 2018. Just thought I'd give you a shout in case you had any interest 👍

from dockeryourxyzzy.

XenHat avatar XenHat commented on July 19, 2024

Hey, thank you!
in a weird twist of fate, i've moved away from windows as my main operating system. I do have a windows machine around able to test this, however, I will try to find time soon :)

from dockeryourxyzzy.

cprosser avatar cprosser commented on July 19, 2024

I just encountered this error on Windows with Docker/WSL2. Ends up it a crlf conversion issue. There's probably a better way of fixing this, but this works.

Running the following and then grabbing a fresh clone of the repo got it all working for me.

git config --global core.eol lf
git config --global core.autocrlf input

git clone https://github.com/emcniece/DockerYourXyzzy.git 

https://stackoverflow.com/questions/51508150/standard-init-linux-go190-exec-user-process-caused-no-such-file-or-directory

Afterward you can restore git to normal windows behavior with:

git config --global --unset core.autocrlf
git config --global --unset core.eol

from dockeryourxyzzy.

emcniece avatar emcniece commented on July 19, 2024

@cprosser I've just merged your PR with the dos2unix feature. Do you think that will solve this issue?

from dockeryourxyzzy.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.