Setup Variant: Service Containers Managed by devrd cli¶
This variant utilizes the devrd CLI to manage service containers, making it an ideal choice for users who do not use VSCode. It provides dedicated control of the service containers independent of the devcontainer lifecycle. The devcontainer itself will not start or stop any service containers.
Note
When using this variant and still using VSCode, the VSCode built-in terminal cannot execute commands directly within the devcontainer. Instead, use the devrd CLI to open an interactive session (see below).
What to expect from this setup¶
If one prefers to run the devcontainer outside VSCode, this setup variant is the right choice.
The devrd cli will help to manage the service containers independent
of the devcontainer lifecycle. So one can start and stop the service containers
at any time.
The contents of the everest-core repo are mapped inside the container
in the directory /workspace.
Prerequisites¶
To install the prerequisites, please check your operating system or distribution online documentation:
Required Steps¶
Clone the everest-core repository
If you have not done this yet, clone the everest-core repository from GitHub to your local machine:
git clone https://github.com/EVerest/everest-core.git path/to/everest-core
Where
path/to/everest-coreis the path where you want to clone the repository to.Build and start the devcontainer and service containers
Change into the cloned repository directory:
cd path/to/everest-core
Then build and start the devcontainer and the service containers with the devrd cli:
./applications/devrd/devrd startThis will build and start the devcontainer and all service containers. If not yet existing, devrd will generate the
.devcontainer/.envfile.Open an interactive shell in the devcontainer
To run commands inside the devcontainer, open an interactive shell with the devrd cli:
./applications/devrd/devrd promptThis will open an interactive shell inside the devcontainer. The contents of the everest-core repository are mapped to the
/workspacedirectory inside the container.You can now run all development commands inside this shell.
To exit the shell, simply type
exitor pressCtrl+D.
See the howto to learn how to execute EVerest in a SIL using containers.
Optional: Install bash/zsh completion¶
If you want to enable completion on your host system follow the steps below.
Install bash completion¶
Add the following lines to your ~/.bashrc file:
# bash completion for devrd cli
source applications/devrd/devrd-completion.bash
Then reload your ~/.bashrc file:
source ~/.bashrc
Install zsh completion¶
Add the following lines to your ~/.zshrc file:
# zsh completion for devrd cli
autoload -U compinit && compinit
source applications/devrd/devrd-completion.zsh
Then reload your ~/.zshrc file:
source ~/.zshrc
See the separate troubleshooting section for help on devcontainer-specific issues.
Authors: Florian Mihut, Andreas Heinrich