Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Using docker-compose fails #25

Closed
llewelld opened this issue Nov 7, 2020 · 2 comments
Closed

Using docker-compose fails #25

llewelld opened this issue Nov 7, 2020 · 2 comments

Comments

@llewelld
Copy link

llewelld commented Nov 7, 2020

Describe the bug, issue or concern

Currently docker-compose up --build fails on a clean clone due to a couple of errors in the Docker file.

This is running on Ubuntu 20.04.

To Reproduce

Steps to reproduce the behavior:

  1. Create a fresh clone of the repository:
git clone https://github.com/minvws/nl-covid19-notification-app-backend.git
  1. Enter the freshly created repository.
cd nl-covid19-notification-app-backend
  1. Start the docker compose process as described in the docs.
cd docker
docker-compose up --build
  1. Generates the following output and error.
$ docker-compose up --build
Building mobile_api
Step 1/23 : FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS builder
 ---> 656495ef4e20
Step 2/23 : COPY . app/
 ---> Using cache
 ---> c642901eb776
Step 3/23 : WORKDIR app/
 ---> Using cache
 ---> 1ace1d52bf4c
Step 4/23 : COPY docker/development/appsettings.json .
 ---> Using cache
 ---> 88648b988891
Step 5/23 : RUN rm Components/Framework/WindowsIdentityStuff.cs
 ---> Running in d0d719382673
rm: can't remove 'Components/Framework/WindowsIdentityStuff.cs': No such file or directory
ERROR: Service 'mobile_api' failed to build: The command '/bin/sh -c rm Components/Framework/WindowsIdentityStuff.cs' returned a non-zero code: 1
  1. Fixing this error generates further output leading to another error:
MSBUILD : error MSB1009: Project file does not exist.
Switch: DbFillExampleContent/DbFillExampleContent.csproj
ERROR: Service 'mobile_api' failed to build: The command '/bin/sh -c dotnet publish DbFillExampleContent/DbFillExampleContent.csproj --no-self-contained  --configuration Release -o publish/Tools/DbFillExampleContent --version-suffix local' returned a non-zero code: 1

Expected behavior

The docker containers are successfully brought up.

Screenshots

n/a, see console output above

Additional context

I'll shortly submit a simple PR to address the issues.

Governance

@skos001
Copy link
Contributor

skos001 commented May 11, 2022

@llewelld a belated thanks for opening this issue back in 2020 🙌 and sincere apologies that we haven't responded to this pull request all this time 😅

The Docker setup within the project has changed since your reporting of this issue, and should now work without issue on Windows, Linux and macOS (excepting macOS M1, which has specific work-around instructions in the README).

If the changes to the project solve your original issue, feel free to close this issue and the corresponding pull request 🙂

@skos001
Copy link
Contributor

skos001 commented Aug 10, 2022

Closing old issue.

@skos001 skos001 closed this as completed Aug 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants