Skip to content

Commit 3c90680

Browse files
committed
Save the keys to a text file
1 parent e9f27b0 commit 3c90680

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ terraform.rc
4040

4141
# We don't use these version locks
4242
**/.terraform.lock.hcl
43+
44+
keys.txt

initdemo.sh

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -927,18 +927,20 @@ then
927927
fi
928928

929929
# All done
930-
echo "###############################################################################################################################"
931-
echo "Open Octopus at http://localhost:18080 - username is \"admin\" and password is \"Password01!\""
932-
echo "Open Gitea at http://localhost:3000 - username is \"octopus\" and password is \"Password01!\""
930+
echo "###############################################################################################################################" > keys.txt
931+
echo "Open Octopus at http://localhost:18080 - username is \"admin\" and password is \"Password01!\"" >> keys.txt
932+
echo "Open Gitea at http://localhost:3000 - username is \"octopus\" and password is \"Password01!\"" >> keys.txt
933933
if [[ "${INSTALL_ARGO}" == "TRUE" ]]
934934
then
935-
echo "Start a minikube tunnel in Linux/macOS with: KUBECONFIG=/tmp/octoconfig.yml minikube tunnel"
936-
echo "Start a minikube tunnel in WSL with: MINIKUBE_HOME=\"\$HOME/.minikube\" KUBECONFIG=/tmp/octoconfig.yml sudo --preserve-env=MINIKUBE_HOME --preserve-env=KUBECONFIG minikube tunnel"
937-
echo "Wait for the Argo CD pods to start. You can see their status with: KUBECONFIG=/tmp/octoconfig.yml kubectl get pods -n argocd"
938-
echo "Find the Argo CD IP address with: KUBECONFIG=/tmp/octoconfig.yml kubectl get service argocd-server -n argocd"
939-
echo "Get the initial Argo CD admin password with: KUBECONFIG=/tmp/octoconfig.yml argocd admin initial-password -n argocd"
940-
echo "Get the logs for the OctopusArgoCDProxy with: KUBECONFIG=/tmp/octoconfig.yml kubectl logs -f deployment/octoargosync -n argocd"
941-
echo "ArgoCD token for account octopus is: ${TOKEN%%pod \"*}"
942-
echo "ArgoCD password is: ${ARGO_PASSWORD}"
935+
echo "Start a minikube tunnel in Linux/macOS with: KUBECONFIG=/tmp/octoconfig.yml minikube tunnel" >> keys.txt
936+
echo "Start a minikube tunnel in WSL with: MINIKUBE_HOME=\"\$HOME/.minikube\" KUBECONFIG=/tmp/octoconfig.yml sudo --preserve-env=MINIKUBE_HOME --preserve-env=KUBECONFIG minikube tunnel" >> keys.txt
937+
echo "Wait for the Argo CD pods to start. You can see their status with: KUBECONFIG=/tmp/octoconfig.yml kubectl get pods -n argocd" >> keys.txt
938+
echo "Find the Argo CD IP address with: KUBECONFIG=/tmp/octoconfig.yml kubectl get service argocd-server -n argocd" >> keys.txt
939+
echo "Get the initial Argo CD admin password with: KUBECONFIG=/tmp/octoconfig.yml argocd admin initial-password -n argocd" >> keys.txt
940+
echo "Get the logs for the OctopusArgoCDProxy with: KUBECONFIG=/tmp/octoconfig.yml kubectl logs -f deployment/octoargosync -n argocd" >> keys.txt
941+
echo "ArgoCD token for account octopus is: ${TOKEN%%pod \"*}" >> keys.txt
942+
echo "ArgoCD password is: ${ARGO_PASSWORD}" >> keys.txt
943943
fi
944-
echo "###############################################################################################################################"
944+
echo "###############################################################################################################################" >> keys.txt
945+
946+
cat keys.txt

0 commit comments

Comments
 (0)