Skip to content

Commit

Permalink
justfile: add devcontainer cli recipes
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 using the [cli].

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

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

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

Signed-off-by: katelyn martin <kate@buoyant.io>
  • Loading branch information
cratelyn committed Sep 27, 2024
1 parent 642c2af commit 63f97ef
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 63f97ef

Please sign in to comment.