Skip to content

Commit

Permalink
Update enterprise_offline_package.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzhangqi authored Jan 24, 2024
1 parent 4c6f454 commit 19b1fca
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion enterprise_offline_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,18 @@ rainbond/metrics-server:v0.4.1"
done
}

function base_images() {

docker pull bitnami/mysql:8.0.34
docker save bitnami/mysql:8.0.34 -o ./offline/base_image/bitnami-mysql-8.0.34.tgz

# Github action supports a maximum of 12 GB storage, so delete the image after packaging
docker rmi bitnami/mysql:8.0.34
}

function main() {

mkdir -p ./offline ./offline/k8s_image ./offline/rbd_image ./offline/ceph_image
mkdir -p ./offline ./offline/k8s_image ./offline/rbd_image ./offline/ceph_image ./offline/base_image

download_offline_package

Expand All @@ -157,6 +166,8 @@ function main() {

#get_ceph_images

base_images

tar zcvf rainbond-offline-"$VERSION".tgz offline/*

}
Expand Down

0 comments on commit 19b1fca

Please sign in to comment.