-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add devbox offline install scripts * devbox-offline * fix kubefile
- Loading branch information
Showing
8 changed files
with
56 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM scratch | ||
COPY tars tars | ||
COPY scripts scripts | ||
|
||
ENV cloudDomain=${cloudDomain:-"127.0.0.1.nip.io"} | ||
ENV cloudPort="" | ||
ENV registryAddr=${registryAddr:-"sealos.hub:5000"} | ||
ENV registryUser=${registryUser:-"admin"} | ||
ENV registryPassword=${registryPassword:-"passw0rd"} | ||
|
||
CMD ["bash scripts/init.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
readonly ARCH=${1:-amd64} | ||
set -e | ||
|
||
mkdir -p tars | ||
|
||
RetryPullImageInterval=3 | ||
RetrySleepSeconds=3 | ||
|
||
|
||
retryPullImage() { | ||
local image=$1 | ||
local retry=0 | ||
local retryMax=3 | ||
set +e | ||
while [ $retry -lt $RetryPullImageInterval ]; do | ||
sealos pull --policy=always --platform=linux/"${ARCH}" $image >/dev/null && break | ||
retry=$(($retry + 1)) | ||
echo "retry pull image $image, retry times: $retry" | ||
sleep $RetrySleepSeconds | ||
done | ||
set -e | ||
if [ $retry -eq $retryMax ]; then | ||
echo "pull image $image failed" | ||
exit 1 | ||
fi | ||
} | ||
|
||
retryPullImage ghcr.io/labring/sealos-cloud-devbox-controller:latest | ||
retryPullImage ghcr.io/labring/sealos-cloud-devbox-frontend:latest | ||
|
||
sealos save -o tars/devbox-controller.tar ghcr.io/labring/sealos-cloud-devbox-controller:latest | ||
sealos save -o tars/devbox-frontend.tar ghcr.io/labring/sealos-cloud-devbox-frontend:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
sealos run tars/devbox-controller.tar -e cloudDomain=${cloudDomain} -e cloudPort=${cloudPort} -e registryAddr=${registryAddr} -e registryUser=${registryUser} -e registryPassword=${registryPassword} | ||
sealos run tars/devbox-frontend.tar -e cloudDomain=${cloudDomain} -e cloudPort=${cloudPort} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
frontend/providers/devbox/deploy/scripts/update-backup-label.sh
This file was deleted.
Oops, something went wrong.