File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ services:
77 WORKDIR /app
88
99 RUN apk add --no-cache git
10- RUN git clone https://github.com/Dstack-TEE/dstack.git && \
10+ RUN git clone ${GIT_REPOSITORY} && \
1111 cd dstack && \
1212 git checkout ${GIT_REV}
1313 WORKDIR /app/dstack/kms/auth-eth
Original file line number Diff line number Diff line change 3232# The URL of the dstack app image download URL
3333# IMAGE_DOWNLOAD_URL=https://files.kvin.wang/images/mr_{OS_IMAGE_HASH}.tar.gz
3434
35+ # Image hash verification feature flag
36+ VERIFY_IMAGE=true
37+
3538# The URL of the Ethereum RPC service
3639ETH_RPC_URL=https://rpc.phala.network
3740
41+ # The Git repository to deploy
42+ GIT_REPOSITORY=https://github.com/Dstack-TEE/dstack.git
43+
3844# The Git revision to deploy
3945GIT_REV=HEAD
4046
@@ -56,6 +62,8 @@ required_env_vars=(
5662 " KMS_CONTRACT_ADDR"
5763 " ETH_RPC_URL"
5864 " IMAGE_DOWNLOAD_URL"
65+ " VERIFY_IMAGE"
66+ " GIT_REPOSITORY"
5967)
6068
6169for var in " ${required_env_vars[@]} " ; do
@@ -85,6 +93,8 @@ subvar KMS_CONTRACT_ADDR
8593subvar GIT_REV
8694subvar IMAGE_DOWNLOAD_URL
8795subvar ADMIN_TOKEN_HASH
96+ subvar VERIFY_IMAGE
97+ subvar GIT_REPOSITORY
8898
8999echo " Docker compose file:"
90100cat " $COMPOSE_TMP "
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ cat <<EOF > ./kms.toml
66admin_token_hash = "${ADMIN_TOKEN_HASH} "
77
88[core.image]
9- verify = true
9+ verify = ${VERIFY_IMAGE}
1010cache_dir = "./images"
1111download_url = "${IMAGE_DOWNLOAD_URL} "
1212download_timeout = "2m"
You can’t perform that action at this time.
0 commit comments