Skip to content

Commit

Permalink
[local-preview] show DOMAIN in the output
Browse files Browse the repository at this point in the history
This PR updates the `local-preview` to printout
the Domain of the Gitpod Instance for users to
access.

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
  • Loading branch information
Pothulapati committed Jul 13, 2022
1 parent 61b3df2 commit aeaecaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion install/preview/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ fi

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

echo "Gitpod Domain: $DOMAIN"

Expand Down
3 changes: 2 additions & 1 deletion install/preview/prettylog/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package main
import (
"bufio"
"errors"
"fmt"
"io"
"os"
"strings"
Expand All @@ -24,7 +25,7 @@ var msgs = []struct {
{Msg: "downloading images", Success: "--output-split-files"},
{Msg: "preparing Gitpod preview installation", Success: "rm -rf /var/lib/rancher/k3s/server/manifests/gitpod"},
{Msg: "starting Gitpod", Success: "gitpod-telemetry-init"},
{Msg: "Gitpod is running"},
{Msg: fmt.Sprintf("Gitpod is running. Visit https://%s to access the dashboard", os.Getenv("DOMAIN"))},
}

func main() {
Expand Down

0 comments on commit aeaecaf

Please sign in to comment.