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

justfile: Add devcontainer cli recipes #3241

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

cratelyn
Copy link
Collaborator

@cratelyn cratelyn commented Sep 27, 2024

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.

@cratelyn cratelyn self-assigned this Sep 27, 2024
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]>
@cratelyn cratelyn force-pushed the kate/add-devcontainer-commands-to-justfile branch from 63f97ef to 260a376 Compare September 27, 2024 17:19
@cratelyn cratelyn marked this pull request as ready for review September 27, 2024 17:26
@cratelyn cratelyn requested a review from a team as a code owner September 27, 2024 17:26
Comment on lines +325 to +326
devcontainer-exec container-id *args:
devcontainer.js exec --container-id={{ container-id }} {{ args }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a thin wrapper around docker exec -it, but it seemed more consistent to use the cli. 🤷

@cratelyn cratelyn merged commit 771dfd5 into main Oct 2, 2024
16 checks passed
@cratelyn cratelyn deleted the kate/add-devcontainer-commands-to-justfile branch October 2, 2024 21:46
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

Successfully merging this pull request may close these issues.

2 participants