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

Devcontainer multiple postCreateCommands #3527

Closed
FelixBenning opened this issue Aug 7, 2020 · 1 comment
Closed

Devcontainer multiple postCreateCommands #3527

FelixBenning opened this issue Aug 7, 2020 · 1 comment
Assignees
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster

Comments

@FelixBenning
Copy link

Currently the only way to execute multiple postCreateCommands is by using "&&". Since this command is suggested to be used to install additional tools like git, curl, etc. this can get quite long. For example the RTools Extension requires a .NET installation. So if I want a linter for python and R I have to do something like this:

"apt-get update && apt-get install -y git && conda install --name conda_env pylint -y && wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && dpkg -i packages-microsoft-prod.deb && apt-get update && apt-get install -y aspnetcore-runtime-3.1"

And since JSON does not do line wrapping this is absolutely unreadable.

@joaomoreno joaomoreno assigned chrmarti and unassigned joaomoreno Aug 7, 2020
@chrmarti chrmarti transferred this issue from microsoft/vscode Aug 17, 2020
@chrmarti
Copy link
Contributor

postCreateCommand runs in the workspace folder, you could, e.g., place a script in the .devcontainer folder and invoke it as ./.devcontainer/postCreateCommand.sh.

@chrmarti chrmarti added containers Issue in vscode-remote containers info-needed Issue requires more information from poster labels Aug 17, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants