-
Notifications
You must be signed in to change notification settings - Fork 148
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
Docker image doesn't work #42
Comments
Are you publishing the application? Can you share your steps for building the application ( |
@Petermarcu as written above |
|
Ok, I missed that. Looks like you are running You say that it runs from the |
Maybe this might help: https://github.com/mastoj/suavecore A small sample app running suave on core on docker I made. |
@mastoj can you see anything that I might be doing wrong? |
@Petermarcu I copy the full deploy dir into the container. (first I copy the Dockerfile to /deploy and then I run docker build over there) |
@Petermarcu I pushed the docker image to dockerhub at forki/fable-suave if you want to inspect the end result |
Summoning @glennc (@shanselman told me you might know) |
@forki, can't spot anything obvious. If it helps, here are the commands I run: https://github.com/mastoj/suavecore/blob/master/commands you can skip the gcloud and kubectl stuff |
@mastoj why do you have dotnet run before the docker build? Needed? |
Also I'm using rc4 of the dotnet cli with MSBuild. So no project.json |
@forki I see that the "script" might be a little bit confusing, that's because it is not a script just a file with commands that I used while playing around. |
So it's not needed and it just work's because it's project.json and we now
have a new bug in current rc4?
Am 21.02.2017 09:14 schrieb "Tomas Jansson" <notifications@github.com>:
… @forki <https://github.com/forki> I see that the "script" might be a
little bit confusing, that's because it is not a script just a file with
commands that I used while playing around.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADgNBj8Nf1rDZ_D0tq5Vpjc0a33iP23ks5repzygaJpZM4MGdDb>
.
|
That I don't know. I can't see what the problem is, mainly because I can't build the project on OSX. It shouldn't make a difference if you have project.json, at least that's what I thought. What I needed to do, when I played with it was this (if I recall correctly):
The I used the published bits in the container:
Of course I struggled to get the correct .NET Core version, tooling etc. to get it to work, but after that it worked like a charm. |
but that's exactly what we do here!? @mastoj why is the build not working for you? |
Ok thanks to @mastoj we found out that you need to put it into a subfolder inside the container. Then things work. Weird |
We have a very simple Dockerfile that just tries to dockerize an already "published" .NETCore app:
you can create the image with:
If you then run the container with:
It fails with the error:
This is technically correct, but I you do the following it works:
So something inside the Dockerfile is causing the runtime to look at different place.
The text was updated successfully, but these errors were encountered: