-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix quickstart connection swoole-cli-buider bug
- Loading branch information
1 parent
219f6c1
commit 2e191d4
Showing
3 changed files
with
49 additions
and
2 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
set -exu | ||
__DIR__=$( | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
set -exu | ||
__DIR__=$( | ||
|
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,47 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exu | ||
__DIR__=$( | ||
cd "$(dirname "$0")" | ||
pwd | ||
) | ||
__PROJECT__=$( | ||
cd ${__DIR__}/../../../ | ||
pwd | ||
) | ||
cd ${__PROJECT__} | ||
|
||
MIRROR='' | ||
while [ $# -gt 0 ]; do | ||
case "$1" in | ||
--mirror) | ||
case "$MIRROR" in | ||
china) | ||
MIRROR="$2" | ||
;; | ||
esac | ||
|
||
;; | ||
esac | ||
shift $(($# > 0 ? 1 : 0)) | ||
done | ||
|
||
bash setup-php-runtime.sh ${MIRROR} | ||
export PATH=${__PROJECT__}/bin/runtime:$PATH | ||
alias php="php -d curl.cainfo=${__PROJECT__}/bin/runtime/cacert.pem -d openssl.cafile=${__PROJECT__}/bin/runtime/cacert.pem " | ||
|
||
if [ "$MIRROR" = 'china' ]; then | ||
composer config -g repos.packagist composer https://mirrors.tencent.com/composer/ | ||
fi | ||
|
||
composer install --no-interaction --no-autoloader --no-scripts --prefer-dist -vv --profile # --no-dev | ||
composer dump-autoload --optimize --profile | ||
|
||
if [ "$MIRROR" = 'china' ]; then | ||
composer config -g --unset repos.packagist | ||
fi | ||
|
||
php ./prepare.php --skip-download=yes --without-docker=yes | ||
|
||
bash make.sh docker-build ${MIRROR} | ||
bash make.sh docker-bash |