2022-05-18 13:08:31 -04:00
# debug daemon (debugd)
2022-05-23 06:13:23 -04:00
## Build cdbg
2022-05-18 13:08:31 -04:00
2022-06-10 09:05:09 -04:00
```shell
2022-05-18 13:08:31 -04:00
mkdir -p build
2022-05-23 06:13:23 -04:00
cmake ..
make cdbg
2022-05-18 13:08:31 -04:00
```
## debugd & cdbg usage
With `cdbg` and `yq` installed in your path:
1. Run `constellation config generate` to create a new default configuration
2022-06-10 09:05:09 -04:00
2022-08-29 09:10:53 -04:00
2. Locate the latest debugd images for [GCP ](/.github/docs/README.md#gcp ) and [Azure ](/.github/docs/README.md#azure )
2022-06-10 09:05:09 -04:00
2022-05-18 13:08:31 -04:00
3. Modify the `constellation-conf.yaml` to use an image with the debugd already included and add required firewall rules:
2022-06-10 09:05:09 -04:00
2022-05-18 13:08:31 -04:00
```shell-session
2022-08-05 06:28:57 -04:00
# Set full reference of cloud provider image name
export IMAGE_URI=
```
2022-05-18 13:08:31 -04:00
2022-08-05 06:28:57 -04:00
```shell-session
2022-05-18 13:08:31 -04:00
yq -i \
2022-08-05 06:28:57 -04:00
"(.provider | select(. | has(\"azure\")).azure.image) = \"${IMAGE_URI}\"" \
constellation-conf.yaml
2022-05-18 13:08:31 -04:00
yq -i \
2022-08-05 06:28:57 -04:00
"(.provider | select(. | has(\"gcp\")).gcp.image) = \"${IMAGE_URI}\"" \
2022-05-18 13:08:31 -04:00
constellation-conf.yaml
yq -i \
2022-09-06 04:38:14 -04:00
"(.debugCluster) = true" \
2022-05-18 13:08:31 -04:00
constellation-conf.yaml
```
2022-06-10 09:05:09 -04:00
2022-05-18 13:08:31 -04:00
4. Run `constellation create […]`
2022-06-10 09:05:09 -04:00
2022-05-23 06:13:23 -04:00
5. Run `./cdbg deploy`
2022-05-18 13:08:31 -04:00
2022-08-31 06:25:27 -04:00
By default, `cdbg` searches for the bootstrapper in the current path (`./bootstrapper`). You can define a custom path by appending the argument `--bootstrapper <path to bootstrapper>` to `cdbg deploy` .
2022-06-10 09:05:09 -04:00
6. Run `constellation init […]` as usual
2022-05-18 13:08:31 -04:00
2022-08-31 06:25:27 -04:00
2022-08-15 05:09:10 -04:00
### debugd images
2022-05-18 13:08:31 -04:00
2022-08-15 05:09:10 -04:00
For a full list of image naming conventions and how to retreive them check [image version documentation ](/.github/docs/README.md#image-versions )