File tree Expand file tree Collapse file tree 3 files changed +6
-62
lines changed
.github/all-in-one/docker-compose Expand file tree Collapse file tree 3 files changed +6
-62
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- dir=" docker-compose"
4
-
5
3
pwd
6
4
cp -r ../docker-compose ./
7
- cd docker-compose
8
- tar -czvf ./univer.tar.gz * .[! .]*
9
- mv ./univer.tar.gz ../
10
- cd ../
11
5
12
- source ${dir} /.env
6
+ source docker-compose/.env
7
+
8
+ mv docker-compose univer-server-${UNIVERSER_VERSION}
13
9
14
10
echo " save univer image"
15
11
docker pull univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/release/universer:${UNIVERSER_VERSION}
@@ -61,9 +57,10 @@ docker save \
61
57
kbudde/rabbitmq-exporter:${RABBITMQ_EXPORTER_VERSION} \
62
58
| gzip > observability-image.tar.gz
63
59
64
- rm -rf $dir
60
+ mkdir all-in-one.$1 .${UNIVERSER_VERSION}
61
+ mv univer-image.tar.gz observability-image.tar.gz univer-server-${UNIVERSER_VERSION} / load-images.sh ./all-in-one.$1 .${UNIVERSER_VERSION}
65
62
66
- tar -cvf all-in-one.$1 .${UNIVERSER_VERSION} .tar univer-image.tar.gz observability-image.tar.gz univer.tar.gz install.sh uninstall.sh
63
+ tar -cvf all-in-one.$1 .${UNIVERSER_VERSION} .tar ./all-in-one. $1 . ${UNIVERSER_VERSION}
67
64
68
65
echo " ALLINONE_PATH=$( echo $PWD /all-in-one.$1 .${UNIVERSER_VERSION} .tar) " >> $GITHUB_ENV
69
66
echo " ALLINONE_TAR=$( echo all-in-one.$1 .${UNIVERSER_VERSION} .tar) " >> $GITHUB_ENV
Original file line number Diff line number Diff line change @@ -62,43 +62,3 @@ docker load -i univer-image.tar.gz
62
62
63
63
# load observability image
64
64
docker load -i observability-image.tar.gz
65
-
66
- packagePath=" ${PWD} "
67
- appPath=" ${PWD} /univer-server"
68
-
69
- # check docker-compose directory
70
- tar_overwrite=" "
71
- if [ -f ${appPath} /.env ] && [ -f ${appPath} /run.sh ]; then
72
- read -r -p " docker-compose directory already exists, do you want to overwrite it? [y/N] " response
73
- if [ " $response " == " y" ] || [ " $response " == " Y" ]; then
74
- case " $osType " in
75
- " darwin" )
76
- tar_overwrite=" -U"
77
- ;;
78
- " linux" )
79
- tar_overwrite=" --overwrite"
80
- ;;
81
- esac
82
- else
83
- case " $osType " in
84
- " darwin" )
85
- tar_overwrite=" -k"
86
- ;;
87
- " linux" )
88
- tar_overwrite=" --skip-old-files"
89
- ;;
90
- esac
91
- fi
92
- fi
93
-
94
- mkdir -p ${appPath} \
95
- && cd ${appPath} \
96
- && cp ${packagePath} /univer.tar.gz . \
97
- && tar -xzf univer.tar.gz $tar_overwrite \
98
- && if [ -f ../license-univer ]; then cp ../license-univer ./configs/; fi \
99
- && $SED -e ' s/^\s*prepare_image$/#&/' run.sh \
100
- && NOT_CHECK_REGION=true bash run.sh \
101
- && bash run.sh check \
102
- && cd -
103
-
104
- rm univer-image.tar.gz observability-image.tar.gz univer.tar.gz
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments