Skip to content

Commit aeaecaf

Browse files
committed
[local-preview] show DOMAIN in the output
This PR updates the `local-preview` to printout the Domain of the Gitpod Instance for users to access. Signed-off-by: Tarun Pothulapati <[email protected]>
1 parent 61b3df2 commit aeaecaf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

install/preview/entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ fi
2828

2929
# Set Domain to `127-0-0-1.nip.io` if not set
3030
if [ -z "${DOMAIN}" ]; then
31-
DOMAIN="127-0-0-1.nip.io"
31+
export DOMAIN="127-0-0-1.nip.io"
3232
fi
33+
export DOMAIN
3334

3435
echo "Gitpod Domain: $DOMAIN"
3536

install/preview/prettylog/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package main
66
import (
77
"bufio"
88
"errors"
9+
"fmt"
910
"io"
1011
"os"
1112
"strings"
@@ -24,7 +25,7 @@ var msgs = []struct {
2425
{Msg: "downloading images", Success: "--output-split-files"},
2526
{Msg: "preparing Gitpod preview installation", Success: "rm -rf /var/lib/rancher/k3s/server/manifests/gitpod"},
2627
{Msg: "starting Gitpod", Success: "gitpod-telemetry-init"},
27-
{Msg: "Gitpod is running"},
28+
{Msg: fmt.Sprintf("Gitpod is running. Visit https://%s to access the dashboard", os.Getenv("DOMAIN"))},
2829
}
2930

3031
func main() {

0 commit comments

Comments
 (0)