-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #257 from rackerlabs/devbox-and-poetry
feat: development shells with Devbox
- Loading branch information
Showing
11 changed files
with
1,733 additions
and
17 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Development environment | ||
|
||
In order to easily setup the development environment for `ironic_understack`: | ||
|
||
1. [Install Devbox](https://www.jetify.com/devbox/docs/installing_devbox/) if | ||
you don't have it yet. | ||
2. Start using the environment with one of the methods described below | ||
|
||
That's it. | ||
|
||
## Automated method (recommended) | ||
|
||
If you want the environment to be started automatically when you `cd` into a | ||
project directory (without you having to run `devenv shell`), run a one-time | ||
command: | ||
|
||
`devbox generate direnv` | ||
|
||
You also need to have [direnv](https://direnv.net/docs/installation.html) | ||
installed on your system. | ||
|
||
The next time you change into the project directory you will have the | ||
environment ready to use. | ||
|
||
## Manual method | ||
|
||
Run `devbox shell` in the project directory every time you want to enter | ||
development environment. | ||
|
||
|
||
## What's available in the environment | ||
|
||
- ironic | ||
- pytest | ||
- python 3.11 | ||
- Kubernetes tools (kubectl, [kubeseal][kubeseal], kustomize, [telepresence][telepresence]) | ||
- Argo client to interact with the Argo workflows | ||
|
||
[telepresence]: https://www.telepresence.io/ | ||
[kubeseal]: https://github.com/bitnami-labs/sealed-secrets |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.12.0/.schema/devbox.schema.json", | ||
"packages": [ | ||
"jq@latest", | ||
"yq-go@latest", | ||
"[email protected]", | ||
"poetry@latest", | ||
"kubectl@latest", | ||
"kubeseal@latest", | ||
"kustomize@latest", | ||
"telepresence2@latest" | ||
], | ||
"shell": { | ||
"init_hook": [ | ||
"echo 'Welcome to Understack ironic devbox!' > /dev/null", | ||
". $VENV_DIR/bin/activate", | ||
"poetry install" | ||
], | ||
"scripts": { | ||
"test": [ | ||
"pytest" | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.