Development Environment¶
You can use Eclipse Che, devcontainers, or your favorite OS/distro to develop Jumpstarter. The following examples are for Fedora.
Jumpstarter is programmed in Python and Go, the Jumpstarter controller is written in Go, while the core and drivers are written in Python.
Python Environment¶
The Jumpstarter core and drivers live in the jumpstarter repository.
We use uv as our python package and project
manager, and make as our build interface.
To install the basic set of dependencies, run the following commands:
$ sudo dnf install -y python-devel g++ make git uv qemu qemu-user-static
Then you can clone the project and build the virtual environment with:
$ git clone https://github.com/jumpstarter-dev/jumpstarter.git
$ cd jumpstarter
$ make build-python
At this point you can run any of the jumpstarter commands prefixing them with
uv run from the python/ directory:
$ cd python
$ uv run jmp
Running the Tests¶
To run the tests, you can use make from the repository root:
$ make test
You can also run specific tests with:
$ make pkg-test-${package_name}
Go Environment¶
The Jumpstarter controller lives in the controller/ directory within the
jumpstarter monorepo.
To install the basic set of dependencies, run the following commands:
$ sudo dnf install -y git make golang kubectl
Then you can build the controller from the repository root:
$ cd controller
$ make build
At this point you can deploy the controller in a kubernetes cluster in docker
(kind) with:
$ CONTAINER_TOOL=podman make deploy
And you can cleanup and stop the controller/cluster with:
$ CONTAINER_TOOL=podman make clean
Running the Tests¶
To run the tests, you can use the make command:
$ make test