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.
Setting up container support
Section titled “Setting up container support”If you didn’t initialize with containers, you can add support to an existing environment:
kanuka grove container initOr if you’re starting fresh:
kanuka grove init --containersBuilding your container
Section titled “Building your container”Once container support is enabled, building is simple:
kanuka grove container buildThis builds a container from your current Grove environment with all your packages included.
Using your container
Section titled “Using your container”After building, sync it to Docker:
kanuka grove container syncNow you can use it with Docker:
docker run -it your-container-nameTesting your container
Section titled “Testing your container”You can enter the container interactively for testing:
kanuka grove container enterThis starts a shell inside the container, which is great for debugging.
Next steps
Section titled “Next steps”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.