Commit e655263 1 parent 7c8725e commit e655263 Copy full SHA for e655263
File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,15 @@ OPTIONS=''
16
16
while [ $# -gt 0 ]; do
17
17
case " $1 " in
18
18
--mirror)
19
+ MIRROR=" $2 "
19
20
case " $MIRROR " in
20
21
china)
21
- MIRROR=" $2 "
22
22
OPTIONS=" --mirror china "
23
23
;;
24
+ * )
25
+ echo " $0 parameter error"
26
+ exit 0
27
+ ;;
24
28
esac
25
29
26
30
;;
@@ -32,6 +36,8 @@ bash setup-php-runtime.sh ${OPTIONS}
32
36
export PATH=${__PROJECT__} /bin/runtime:$PATH
33
37
alias php=" php -d curl.cainfo=${__PROJECT__} /bin/runtime/cacert.pem -d openssl.cafile=${__PROJECT__} /bin/runtime/cacert.pem "
34
38
39
+ export COMPOSER_ALLOW_SUPERUSER=1
40
+
35
41
if [ " $MIRROR " = ' china' ]; then
36
42
composer config -g repos.packagist composer https://mirrors.tencent.com/composer/
37
43
fi
46
52
php ./prepare.php --skip-download=yes --without-docker=yes
47
53
48
54
bash make.sh docker-build ${MIRROR}
55
+
56
+ {
57
+ docker exec -it swoole-cli-builder which bash
58
+ } || {
59
+ docker exec -it swoole-cli-builder sh /work/sapi/quickstart/linux/alpine-init.sh ${OPTIONS}
60
+ }
61
+
49
62
bash make.sh docker-bash
You can’t perform that action at this time.
0 commit comments