Created
November 6, 2022 14:55
-
-
Save yskszk63/a777cf403b77cb66bf47c25b0fe74c66 to your computer and use it in GitHub Desktop.
Bash on Devcontainer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: bash | |
bash: | |
TMP=$$(mktemp); trap "rm $$TMP" EXIT; devcontainer up --workspace-folder . > $$TMP; docker exec -it -u$$(jq .remoteUser $$TMP -r) -w$$(jq .remoteWorkspaceFolder $$TMP -r) $$(jq .containerId $$TMP -r) bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment