Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File ownership error building TRE CLI in devcontainer #3804

Closed
TonyWildish opened this issue Dec 1, 2023 · 5 comments
Closed

File ownership error building TRE CLI in devcontainer #3804

TonyWildish opened this issue Dec 1, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@TonyWildish
Copy link
Contributor

Remember to label the issue with the appropriate area, and also assign it to yourself if you plan to work on the issue in the near future.

Describe the bug

Building the Devcontainer requires installing the TRE CLI, which is copied to /tmp/cli, then built in-place (lines 107+). This doesn't work unless the COPY command explicitly sets the ownership correctly, with COPY --chown=vscode ...

Again, I'm running on a Mac, but since I need to build the devcontainer to be able to use it, I consider this worth fixing.

Steps to reproduce

  1. clone AzureTRE repository on a Mac
  2. build devcontainer: docker build -t devcontainer -f .devcontainer/Dockerfile .

Azure TRE release version (e.g. v0.14.0 or main):
main

Deployed Azure TRE components - click the (i) in the UI:
none

@TonyWildish TonyWildish added the bug Something isn't working label Dec 1, 2023
@marrobi
Copy link
Member

marrobi commented Dec 1, 2023

@martinpeck @jjgriff93 as Mac users, any thoughts? Not something I've heard as an issue previously.

@TonyWildish are you running the command manually? Or letting VSCode build the devcontainer as per

Visual Studio Code should recognize the available development container and ask you to open the folder using it. For additional details on connecting to remote containers, please see the Open an existing folder in a container quickstart.?

Here: https://microsoft.github.io/AzureTRE/v0.15.2/tre-admins/setup-instructions/deployment-repo/#clone-the-azure-tre-deployment-git-repository

@TonyWildish
Copy link
Contributor Author

No, I'm building manually, not with VSCode.

@marrobi
Copy link
Member

marrobi commented Dec 1, 2023

No, I'm building manually, not with VSCode.

Can you please build within VSCode as per the docs - https://microsoft.github.io/AzureTRE/v0.15.2/tre-admins/setup-instructions/prerequisites/ .

Let us know if the issue still exists.

Thanks.

@TonyWildish
Copy link
Contributor Author

I'm sure it works in VSCode, I just thought it would be useful for it to work outside that too, since it's a non-specific change.

@marrobi
Copy link
Member

marrobi commented Dec 1, 2023

We only have a limited amount of resource and hence can't "support" workflows that don't align with the way we test and hence document how to deploy and work with the project. Although you say it's not specific - without fully testing each change on each platform (and every developers specific environment) nothing is certain. This is why we use devcontainers and have documentation with clear step by step instructions.

If there are issue as a result of the following the documentation (there are likely issues in the docs as with most docs), then happy to discuss and look at a resolution. Thanks.

@marrobi marrobi closed this as not planned Won't fix, can't repro, duplicate, stale Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants