From 2b943285da06c235a441b792553e735e82e23673 Mon Sep 17 00:00:00 2001 From: yy <56745951+lingdie@users.noreply.github.com> Date: Mon, 21 Aug 2023 15:46:34 +0800 Subject: [PATCH] add template to aio cluster image. (#3722) --- deploy/cloud/init.sh | 2 ++ deploy/cloud/scripts/init.sh | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/deploy/cloud/init.sh b/deploy/cloud/init.sh index 68591c939cd..ec76456965e 100644 --- a/deploy/cloud/init.sh +++ b/deploy/cloud/init.sh @@ -12,6 +12,7 @@ sealos pull --policy=always ghcr.io/labring/sealos-cloud-resources-controller:la sealos pull --policy=always ghcr.io/labring/sealos-cloud-account-controller:latest sealos pull --policy=always ghcr.io/labring/sealos-cloud-costcenter-frontend:latest sealos pull --policy=always ghcr.io/labring/sealos-cloud-licenseissuer-controller:latest +sealos pull --policy=always ghcr.io/labring/sealos-cloud-template-frontend:latest sealos save -o tars/user.tar ghcr.io/labring/sealos-cloud-user-controller:latest sealos save -o tars/terminal.tar ghcr.io/labring/sealos-cloud-terminal-controller:latest @@ -26,3 +27,4 @@ sealos save -o tars/frontend-terminal.tar ghcr.io/labring/sealos-cloud-terminal sealos save -o tars/frontend-dbprovider.tar ghcr.io/labring/sealos-cloud-dbprovider-frontend:latest sealos save -o tars/frontend-costcenter.tar ghcr.io/labring/sealos-cloud-costcenter-frontend:latest sealos save -o tars/frontend-applaunchpad.tar ghcr.io/labring/sealos-cloud-applaunchpad-frontend:latest +sealos save -o tars/frontend-template.tar ghcr.io/labring/sealos-cloud-template-frontend:latest diff --git a/deploy/cloud/scripts/init.sh b/deploy/cloud/scripts/init.sh index 761e0a10fe3..70cb6b1015b 100644 --- a/deploy/cloud/scripts/init.sh +++ b/deploy/cloud/scripts/init.sh @@ -148,6 +148,12 @@ function sealos_run_frontend { --env certSecretName="wildcard-cert" \ --env transferEnabled="true" \ --env rechargeEnabled="false" + + echo "run template frontend" + sealos run tars/frontend-template.tar \ + --env cloudDomain=$cloudDomain \ + --env cloudPort=$cloudPort \ + --env certSecretName="wildcard-cert" } function sealos_authorize {