Azure-Samples / container-apps-store-api-microservice

Sample microservices solution using Azure Container Apps, Dapr, Cosmos DB, and Azure API Management
MIT License
340 stars 420 forks source link

DevContainer build fails on SED #1

Closed paulyuk closed 2 years ago

paulyuk commented 2 years ago

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Open repo in VS Code Spaces Alternatively, docker build the dockerfile in the /.devcontainer folder

Any log messages given by the failure

=> ERROR [11/11] RUN sed -i 's/statestore/orders/g' ${HOME}/.dapr/components/statestore.yaml       0.5s
------
 > [11/11] RUN sed -i 's/statestore/orders/g' ${HOME}/.dapr/components/statestore.yaml:
#15 0.463 sed: can't read /root/.dapr/components/statestore.yaml: No such file or directory
------
executor failed running [/bin/sh -c sed -i 's/statestore/orders/g' ${HOME}/.dapr/components/statestore.yaml]: exit code: 2
The terminal process "bash '-c', 'docker build --pull --rm -f ".devcontainer/Dockerfile" -t containerappsstoreapimicroservice:latest ".devcontainer"'" terminated with exit code: 1.

Expected/desired behavior

No error

Mention any other details that might be usefull

likely a minor path issue for statestore. I can do shortly.

paulyuk commented 2 years ago

Fixed by https://github.com/Azure-Samples/container-apps-store-api-microservice/commit/b1b06708a23dc690cd290837b9fde13a6bad5867