azurenoops / ref-scca-enclave-landing-zone-starter

A reference implementation of an SCCA-compliant Mission Enclave landing zone that supports running Azure PaaS services using Azure NoOps.
5 stars 7 forks source link

Starter fails to `terraform init` inside devcontainer due to lack of permissions to the /usr directory #75

Closed timothymeyers closed 5 months ago

timothymeyers commented 9 months ago

Please provide us with the following information:

This issue is for a: (mark with an 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

image

Note that /usr is owned by root:root and in 755 mode only, disallowing the current user vscode to make any changes during terraform init.

image

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

timothymeyers commented 9 months ago

I was able to get things moving by updating line 110 and adding line 111 to the DOCKERFILE of the dev container. Not sure if this is the best approach but it worked enough to move forward 💯

image