bdcp
bdcp
CC#
Created by bdcp on 6/24/2024 in #help
Docker non-root access volume for runtime image
Yup that was it, i got helped on stackoverflow
in your Dockerfile, so your application is running as the predefined app user which has UID 64198.

For you to be able to create files in the mounted directory, UID 64198 needs to be able to create files on the host in the ./testdata directory.

You can do that by giving public write access on the host using chmod o+w ./testdata.

If that's too permissive, you can create a user on the host with UID 64198 and give that user group access to the directory.
in your Dockerfile, so your application is running as the predefined app user which has UID 64198.

For you to be able to create files in the mounted directory, UID 64198 needs to be able to create files on the host in the ./testdata directory.

You can do that by giving public write access on the host using chmod o+w ./testdata.

If that's too permissive, you can create a user on the host with UID 64198 and give that user group access to the directory.
6 replies
CC#
Created by bdcp on 10/7/2023 in #help
❔ Substitute interface property?
making everything an interface worked
5 replies
CC#
Created by bdcp on 10/7/2023 in #help
❔ Substitute interface property?
it wasnt Azure specific, i was just mocking the interface, which is a wrapper to azure blob storage
5 replies
CC#
Created by bdcp on 6/26/2023 in #help
❔ Writing tests for Minimal API that calls KeyVault and Azure
4 replies