Skip to content

Commit

Permalink
justfile: Add devcontainer cli recipes (#3241)
Browse files Browse the repository at this point in the history
this commit introduces two recipes to manage a dev container for this
repository using the [cli].

`just devcontainer-up` will create and run a devcontainer.

`just devcontainer-exec` will execute a command in the container.

[cli]: https://github.com/devcontainers/cli

Signed-off-by: katelyn martin <[email protected]>
  • Loading branch information
cratelyn authored Oct 2, 2024
1 parent a41c37b commit 771dfd5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,13 @@ _linkerd-ready:
{{ _kubectl }} wait pod --for=condition=ready \
--namespace=linkerd --selector='linkerd.io/control-plane-component' \
--timeout=1m
#
# Dev Container
#
devcontainer-up:
devcontainer.js up --workspace-folder=.
devcontainer-exec container-id *args:
devcontainer.js exec --container-id={{ container-id }} {{ args }}

0 comments on commit 771dfd5

Please sign in to comment.