Skip to content

Commit 90a1ebf

Browse files
authored
Merge pull request #375 from Dstack-TEE/kms-gw-hash
Update KMS and Gateway hash
2 parents 8980e0e + 88c552e commit 90a1ebf

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

gateway/dstack-app/deploy-to-vmm.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ SUBNET_INDEX=0
7272
# BOOTNODE_URL=https://gateway.test2.dstack.phala.network:9202
7373
7474
# dstack OS image name
75-
OS_IMAGE=dstack-0.5.0
75+
OS_IMAGE=dstack-0.5.5
7676
7777
# Set defaults for variables that might not be in .env
78-
GIT_REV=HEAD
78+
GATEWAY_IMAGE=dstacktee/gateway@sha256:a7b7e3144371b053ba21d6ac18141afd49e3cd767ca2715599aa0e2703b3a11a
7979
8080
# Port configurations
8181
GATEWAY_RPC_ADDR=0.0.0.0:9202
@@ -120,15 +120,13 @@ CLI="../../vmm/src/vmm-cli.py --url $VMM_RPC"
120120
WG_PORT=$(echo $WG_ADDR | cut -d':' -f2)
121121
COMPOSE_TMP=$(mktemp)
122122

123-
GIT_REV=$(git rev-parse $GIT_REV)
124-
125123
cp docker-compose.yaml "$COMPOSE_TMP"
126124

127125
subvar() {
128126
sed -i "s|\${$1}|${!1}|g" "$COMPOSE_TMP"
129127
}
130128

131-
subvar GIT_REV
129+
subvar GATEWAY_IMAGE
132130
subvar ACME_STAGING
133131

134132
echo "Docker compose file:"

gateway/dstack-app/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
services:
66
gateway:
7-
image: kvin/gateway@sha256:27fc6872836712c640d22397e4cf86c3e771ebed0116e075dca0eb170d9a9081
7+
image: ${GATEWAY_IMAGE}
88
volumes:
99
- /var/run/dstack.sock:/var/run/dstack.sock
1010
- /dstack:/dstack

kms/dstack-app/compose-dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ services:
2929
- 8001:8000
3030

3131
kms:
32-
image: kvin/kms@sha256:ad6a8c5c43aed7278e665cd0960ae5be95060847f7d517633be685cabda95a3d
32+
image: ${KMS_IMAGE}
3333
volumes:
3434
- kms-volume:/kms
3535
- /var/run/dstack.sock:/var/run/dstack.sock

kms/dstack-app/deploy-to-vmm.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ GIT_REPOSITORY=https://github.com/Dstack-TEE/dstack.git
5050
GIT_REV=HEAD
5151
5252
# The dstack OS image name to use for the KMS app
53-
OS_IMAGE=dstack-0.5.0
53+
OS_IMAGE=dstack-0.5.5
54+
55+
# The dstack KMS image name to use for the KMS app
56+
KMS_IMAGE=dstacktee/kms@sha256:11ac59f524a22462ccd2152219b0bec48a28ceb734e32500152d4abefab7a62a
5457
5558
# The admin token for the KMS app
5659
ADMIN_TOKEN=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
@@ -100,6 +103,7 @@ subvar IMAGE_DOWNLOAD_URL
100103
subvar ADMIN_TOKEN_HASH
101104
subvar VERIFY_IMAGE
102105
subvar GIT_REPOSITORY
106+
subvar KMS_IMAGE
103107

104108
echo "Docker compose file:"
105109
cat "$COMPOSE_TMP"

0 commit comments

Comments
 (0)