Setting up a GitLab environment with the GitLab Environment Toolkit
This post is a notebook. It contains instructions to set up and create a GitLab environment in Google Cloud Platform (GCP) using the GitLab Environment Toolkit (GET), installed into a VS Code Dev Container.
The idea is that it's a literate sysadmin runbook, which can be copied and repeated within my get-container.
Notebook instructions¶
To use this, you must be running Jupyter Notebook with the Bash kernel installed. This is explored in detail on my earlier blog post. Jupyter and the extension should already have been installed when the GET Dev Container was provisioned. If not, then re-run the playbook:
ansible-playbook $WORKSPACE/.devcontainer/get/setup.yaml
Then start jupyter:
jupyter notebook --no-browser --allow-root
(this is aliased to notebook
)
Select Kernel¶
Once jupyter is running in the dev container, you can open this notebook and select the Bash kernel from the Select Kernel
button at the top of the buffer. The Bash kernel directly runs bash shell commands, rather than python.