mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
Add hack script to locate latest debug image
This commit is contained in:
parent
9d4172002c
commit
786264edbc
@ -22,7 +22,7 @@ With `cdbg` and `yq` installed in your path:
|
|||||||
|
|
||||||
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](/.github/docs/README.md#gcp) and [Azure](/.github/docs/README.md#azure)
|
2. Locate the latest debugd images by running `hack/find-image/find-image.sh`
|
||||||
|
|
||||||
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:
|
||||||
|
|
||||||
|
26
hack/find-image/find-image.sh
Executable file
26
hack/find-image/find-image.sh
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Copyright (c) Edgeless Systems GmbH
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
|
# Usage: find-image.sh
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
shopt -s inherit_errexit
|
||||||
|
|
||||||
|
base_url="https://cdn.confidential.cloud"
|
||||||
|
bucket="cdn-constellation-backend"
|
||||||
|
newest_debug_image_path=$(aws s3api list-objects-v2 \
|
||||||
|
--output text \
|
||||||
|
--bucket "${bucket}" \
|
||||||
|
--prefix constellation/v1/images/debug-v \
|
||||||
|
--query "reverse(sort_by(Contents, &LastModified))[0].Key")
|
||||||
|
|
||||||
|
image_version_uid=$(basename "${newest_debug_image_path}" .json)
|
||||||
|
url="${base_url}/${newest_debug_image_path}"
|
||||||
|
echo "Found image version UID:"
|
||||||
|
echo "${image_version_uid}"
|
||||||
|
|
||||||
|
echo "Containing the following images:"
|
||||||
|
echo "${url}"
|
||||||
|
curl -sL "${url}" | jq
|
Loading…
Reference in New Issue
Block a user