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

Working example? #146

Closed
bluesherpa opened this issue Apr 19, 2023 · 4 comments
Closed

Working example? #146

bluesherpa opened this issue Apr 19, 2023 · 4 comments

Comments

@bluesherpa
Copy link

bluesherpa commented Apr 19, 2023

Is there a working example of a project that uses the CPP template?

The following workflow would be really helpful:

  • Open Visual Studio Code
  • Press F1
  • Select Dev Containers: New Dev Container
  • Enter a project name
  • Select Create Dev Container
  • Select Run > Start Debugging

The application would compile, run, and display "Hello World!".

The result would be:

  • A Docker image that includes everything needed for basic C++ development and can be easily extended to add more libraries or tools as needed.
  • Code that you can execute and also step through for debugging.
  • Integration with the IDE for IntelliSense.
  • Git support.
  • Use of a Docker Volume for increased I/O performance.

Bonus points for including a description of the workflow for checking out the code, making changes to it, running and stepping through the code, and then saving changes back into Git.

Thanks in advance for any example you have or help creating something like this. I'm happy to create a Pull Request to add if that helps.

-Ed

@samruddhikhandale
Copy link
Member

Hi 👋

Have you looked at microsoft/vscode-remote-try-cpp? that's a sample app for CPP. Wondering if that would be helpful.

@bluesherpa
Copy link
Author

That was perfect, thank you!

Any recommendation on where to post more general questions? I used the template to create a private repo, downloaded it, opened it in Visual Studio Code, and when prompted I chose to the option to Clone in Volume. It fails with an SSH error - permission denied. It's not using the keys and I'm not sure how to provide them. They are located in %HOME%/.ssh and also in the WSL2 ~/.ssh directory. The clone works when I run it manually in WSL2 (Ubuntu) and from Explorer using TortoisGit. I'm guessing I need to somehow provide the credentials to the container, but I also want to make sure the Git features work from within VS Code. Anyway, thanks in advance on recommendations where to post the question.

@samruddhikhandale
Copy link
Member

We have various repositories in https://github.com/devcontainers for different purposes, it would be nice if you would be able to identify (whether the issue is with the CLI/images/Features or something else) and open an issue accordingly.

If your question is more generic, then feel free to post it in https://github.com/orgs/devcontainers/discussions.
We also have a community slack channel, if you're interested in joining, please look at https://github.com/orgs/devcontainers/discussions/3

@bluesherpa
Copy link
Author

Thanks again, this ticket can be closed.

@samruddhikhandale samruddhikhandale closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants