mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 23:49:37 -05:00
Fix gcp debug image command
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
84552ca8f7
commit
6e9428a234
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Build cdbg
|
## Build cdbg
|
||||||
|
|
||||||
```
|
```shell
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cmake ..
|
cmake ..
|
||||||
make cdbg
|
make cdbg
|
||||||
@ -13,6 +13,7 @@ make cdbg
|
|||||||
With `cdbg` and `yq` installed in your path:
|
With `cdbg` and `yq` installed in your path:
|
||||||
|
|
||||||
0. Write the configuration file for cdbg `cdbg-conf.yaml`:
|
0. Write the configuration file for cdbg `cdbg-conf.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
cdbg:
|
cdbg:
|
||||||
authorizedKeys:
|
authorizedKeys:
|
||||||
@ -25,9 +26,13 @@ With `cdbg` and `yq` installed in your path:
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=…
|
Description=…
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Run `constellation config generate` to create a new default configuration
|
1. Run `constellation config generate` to create a new default configuration
|
||||||
|
|
||||||
2. Locate the latest debugd images for [GCP](#debugd-gcp-image) and [Azure](#debugd-azure-image)
|
2. Locate the latest debugd images for [GCP](#debugd-gcp-image) and [Azure](#debugd-azure-image)
|
||||||
|
|
||||||
3. Modify the `constellation-conf.yaml` to use an image with the debugd already included and add required firewall rules:
|
3. Modify the `constellation-conf.yaml` to use an image with the debugd already included and add required firewall rules:
|
||||||
|
|
||||||
```shell-session
|
```shell-session
|
||||||
# Set timestamp from cloud provider image name
|
# Set timestamp from cloud provider image name
|
||||||
export TIMESTAMP=01234
|
export TIMESTAMP=01234
|
||||||
@ -51,23 +56,29 @@ With `cdbg` and `yq` installed in your path:
|
|||||||
}" \
|
}" \
|
||||||
constellation-conf.yaml
|
constellation-conf.yaml
|
||||||
```
|
```
|
||||||
4. Run `constellation create […]`
|
|
||||||
5. Run `./cdbg deploy`
|
|
||||||
6. Run `constellation init […]` as usual
|
|
||||||
|
|
||||||
|
4. Run `constellation create […]`
|
||||||
|
|
||||||
|
5. Run `./cdbg deploy`
|
||||||
|
|
||||||
|
6. Run `constellation init […]` as usual
|
||||||
|
|
||||||
### debugd GCP image
|
### debugd GCP image
|
||||||
|
|
||||||
For GCP, run the following command to get a list of all constellation images, sorted by their creation date:
|
For GCP, run the following command to get a list of all constellation debug images, sorted by their creation date:
|
||||||
```
|
|
||||||
gcloud compute images list --filter="name~'constellation-.+'" --sort-by=~creationTimestamp --project constellation-images
|
```shell
|
||||||
|
gcloud compute images list --filter="name~'constellation-coreos-debugd.+'" --sort-by=~creationTimestamp --project constellation-images
|
||||||
```
|
```
|
||||||
|
|
||||||
Choose the newest debugd image with the naming scheme `constellation-coreos-debugd-<timestamp>`.
|
Choose the newest debugd image with the naming scheme `constellation-coreos-debugd-<timestamp>`.
|
||||||
|
|
||||||
### debugd Azure Image
|
### debugd Azure Image
|
||||||
|
|
||||||
For Azure, run the following command to get a list of all constellation debugd images, sorted by their creation date:
|
For Azure, run the following command to get a list of all constellation debugd images, sorted by their creation date:
|
||||||
```
|
|
||||||
|
```shell
|
||||||
az sig image-version list --resource-group constellation-images --gallery-name Constellation --gallery-image-definition constellation-coreos-debugd --query "sort_by([], &publishingProfile.publishedDate)[].id" -o table
|
az sig image-version list --resource-group constellation-images --gallery-name Constellation --gallery-image-definition constellation-coreos-debugd --query "sort_by([], &publishingProfile.publishedDate)[].id" -o table
|
||||||
```
|
```
|
||||||
|
|
||||||
Choose the newest debugd image and copy the full URI.
|
Choose the newest debugd image and copy the full URI.
|
||||||
|
Loading…
Reference in New Issue
Block a user