Dev Container
This page contains the configuration for a development container that provides a consistent environment for working with Terrakube.
The devcontainer includes all the necessary tools and dependencies to develop both the Java backend, TypeScript frontend components and includes terraform CLI.
VS Code extensions for Java, JavaScript/TypeScript
Getting Started
Local Development Domains
To use the devcontainer we need to setup the following domains in our local computer:
HTTPS Local Certificates
Install to generate the local certificates.
To generate local CA certificate execute the following:
Local DNS entries
Update the /etc/hosts or C:\Windows\System32\drivers\etc\hosts file adding the following entries:
Opening the Project in a Dev Container
Clone the Terrakube repository and run the project:
When prompted to "Reopen in Container", click "Reopen in Container". Alternatively, you can:
Type "Remote-Containers: Reopen in Container" and press Enter
Windows devcontainer
Sometimes in windows the postCreateCommand fails because of how windows manage the new lines characters
To fix this it is required to open a terminal in VS Code and run the following:
Running Terrakube
The devcontainer forwards the following ports:
You can customize the devcontainer by modifying:
.devcontainer/devcontainer.json: VS Code settings and extensions
.devcontainer/Dockerfile: Container image configuration