Skip to content

Building Containers from Your Environment

You can build containers directly from your Grove development environment. This means your deployment containers will match your development environment exactly.

If you didn’t initialize with containers, you can add support to an existing environment:

Terminal window
kanuka grove container init

Or if you’re starting fresh:

Terminal window
kanuka grove init --containers

Once container support is enabled, building is simple:

Terminal window
kanuka grove container build

This builds a container from your current Grove environment with all your packages included.

After building, sync it to Docker:

Terminal window
kanuka grove container sync

Now you can use it with Docker:

Terminal window
docker run -it your-container-name

You can enter the container interactively for testing:

Terminal window
kanuka grove container enter

This starts a shell inside the container, which is great for debugging.

To learn more about kanuka grove container, see the container concepts and the command reference.

Or, continue reading to learn about Grove’s other features.