Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions custom-domain/dstack-ingress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ The fastest way to get started is to use our pre-built image. Simply use the fol
```yaml
services:
dstack-ingress:
image: dstacktee/dstack-ingress:20250924@sha256:40429d78060ef3066b5f93676bf3ba7c2e9ac47d4648440febfdda558aed4b32
image: dstacktee/dstack-ingress:20250929@sha256:2b47b3e538df0b3e7724255b89369194c8c83a7cfba64d2faf0115ad0a586458
ports:
- "443:443"
environment:
Expand Down Expand Up @@ -104,7 +104,7 @@ volumes:
```yaml
services:
ingress:
image: dstacktee/dstack-ingress:20250924@sha256:40429d78060ef3066b5f93676bf3ba7c2e9ac47d4648440febfdda558aed4b32
image: dstacktee/dstack-ingress:20250929@sha256:2b47b3e538df0b3e7724255b89369194c8c83a7cfba64d2faf0115ad0a586458
ports:
- "443:443"
environment:
Expand Down Expand Up @@ -222,7 +222,7 @@ example:
```yaml
services:
dstack-ingress:
image: dstacktee/dstack-ingress:20250924@sha256:40429d78060ef3066b5f93676bf3ba7c2e9ac47d4648440febfdda558aed4b32
image: dstacktee/dstack-ingress:20250929@sha256:2b47b3e538df0b3e7724255b89369194c8c83a7cfba64d2faf0115ad0a586458
ports:
- "443:443"
environment:
Expand Down
3 changes: 3 additions & 0 deletions custom-domain/dstack-ingress/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ else
echo "Or use skopeo directly:"
echo ""
echo " skopeo copy --insecure-policy oci-archive:./oci.tar docker://<repo>[:<tag>]"
echo ""
echo " Pushing image to dstacktee org:"
echo " skopeo copy --insecure-policy oci-archive:./oci.tar docker://dstacktee/dstack-ingress:$(date +%Y%m%d) --authfile ~/.docker/config.json"
fi
echo ""

Expand Down
2 changes: 1 addition & 1 deletion custom-domain/dstack-ingress/docker-compose.multi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
ingress:
image: dstacktee/dstack-ingress:20250924@sha256:40429d78060ef3066b5f93676bf3ba7c2e9ac47d4648440febfdda558aed4b32
image: dstacktee/dstack-ingress:20250929@sha256:2b47b3e538df0b3e7724255b89369194c8c83a7cfba64d2faf0115ad0a586458
ports:
- "443:443"
environment:
Expand Down Expand Up @@ -36,7 +36,7 @@
restart: unless-stopped

volumes:
letsencrypt:

Check failure on line 39 in custom-domain/dstack-ingress/docker-compose.multi.yaml

View workflow job for this annotation

GitHub Actions / check-all

39:15 [empty-values] empty value in block mapping

Check failure on line 39 in custom-domain/dstack-ingress/docker-compose.multi.yaml

View workflow job for this annotation

GitHub Actions / Basic Checks (dev.sh)

39:15 [empty-values] empty value in block mapping

configs:
app_conf:
Expand Down
2 changes: 1 addition & 1 deletion custom-domain/dstack-ingress/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
dstack-ingress:
image: dstacktee/dstack-ingress:20250924@sha256:40429d78060ef3066b5f93676bf3ba7c2e9ac47d4648440febfdda558aed4b32
image: dstacktee/dstack-ingress:20250929@sha256:2b47b3e538df0b3e7724255b89369194c8c83a7cfba64d2faf0115ad0a586458
ports:
- "443:443"
environment:
Expand All @@ -21,4 +21,4 @@
restart: unless-stopped

volumes:
cert-data:

Check failure on line 24 in custom-domain/dstack-ingress/docker-compose.yaml

View workflow job for this annotation

GitHub Actions / check-all

24:13 [empty-values] empty value in block mapping

Check failure on line 24 in custom-domain/dstack-ingress/docker-compose.yaml

View workflow job for this annotation

GitHub Actions / Basic Checks (dev.sh)

24:13 [empty-values] empty value in block mapping
8 changes: 2 additions & 6 deletions custom-domain/dstack-ingress/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
set -e

PORT=${PORT:-443}
if [[ -e /var/run/dstack.sock ]]; then
TXT_PREFIX=${TXT_PREFIX:-"_dstack-app-address"}
else
TXT_PREFIX=${TXT_PREFIX:-"_tapp-address"}
fi
TXT_PREFIX=${TXT_PREFIX:-"_dstack-app-address"}
PROXY_CMD="proxy"
if [[ "${TARGET_ENDPOINT}" == grpc://* ]]; then
PROXY_CMD="grpc"
Expand Down Expand Up @@ -127,7 +123,7 @@ set_txt_record() {
local domain="$1"
local APP_ID

if [[ -e /var/run/dstack.sock ]]; then
if [[ -S /var/run/dstack.sock ]]; then
DSTACK_APP_ID=$(curl -s --unix-socket /var/run/dstack.sock http://localhost/Info | jq -j .app_id)
export DSTACK_APP_ID
else
Expand Down
2 changes: 1 addition & 1 deletion custom-domain/dstack-ingress/scripts/generate-evidences.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ while [ ${#PADDED_HASH} -lt 128 ]; do
done
QUOTED_HASH="${PADDED_HASH}"

if [[ -e /var/run/dstack.sock ]]; then
if [[ -S /var/run/dstack.sock ]]; then
curl -s --unix-socket /var/run/dstack.sock "http://localhost/GetQuote?report_data=${QUOTED_HASH}" > quote.json
else
curl -s --unix-socket /var/run/tappd.sock "http://localhost/prpc/Tappd.RawQuote?report_data=${QUOTED_HASH}" > quote.json
Expand Down
Loading