Ita1pu / HSPSmartCar

HSPSmartCar
MIT License
0 stars 0 forks source link

Running Backend in Docker #33

Closed Monkler closed 6 years ago

Monkler commented 6 years ago

I have problem starting up the docker container.

I've got following error:

$ docker-compose up Building smartcaridentity Step 1/6 : FROM microsoft/aspnetcore:2.0 ---> 424344792d90 Step 2/6 : ARG source ---> Using cache ---> 9c9ae5b9b015 Step 3/6 : WORKDIR /app ---> Using cache ---> 1330a1a9a28d Step 4/6 : EXPOSE 5000 ---> Using cache ---> 3d6358356131 Step 5/6 : COPY ${source:-obj/Docker/publish} . Service 'smartcaridentity' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder435707452/obj/Docker/publish: no such file or directory

LacknerA commented 6 years ago

Because of the gitignore file, no build folder was added to version control. Just open the project file and build the docker solution in release (release is important so the obj/Docker/publish folder is build). After that the composition should work.

Monkler commented 6 years ago

Got Docker etc. running.

Now i have a problem calling the service of the identity server with cross domain support. (We need this feature for the app)

I dont know if i called the wrong Endpoint (127.19.0.4:5002) or the endpoint doesnt support cross domain acceptance.

Failed` to load http://127.19.0.4:5002/: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

Did you try to call the identy server from an other domain?

LacknerA commented 6 years ago

By default the identity server should be running on port 5000. I configured 5002 to be the web ui.