Skip to content

Commit

Permalink
Merge branch 'build_native_php' into new_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed Jan 3, 2025
2 parents aa46447 + 8ebc0aa commit f7b8746
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sapi/quickstart/linux/run-swoole-cli-builder-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ while [ $# -gt 0 ]; do
china)
OPTIONS=" --mirror china "
;;
*)
echo "$0 parameter error"
exit 0
;;
esac

;;
Expand All @@ -33,6 +37,8 @@ exit 0
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 "

export COMPOSER_ALLOW_SUPERUSER=1

if [ "$MIRROR" = 'china' ]; then
composer config -g repos.packagist composer https://mirrors.tencent.com/composer/
fi
Expand All @@ -47,4 +53,11 @@ fi
php ./prepare.php --skip-download=yes --without-docker=yes

bash make.sh docker-build ${MIRROR}

{
docker exec -it swoole-cli-builder which bash
} || {
docker exec -it swoole-cli-builder sh /work/sapi/quickstart/linux/alpine-init.sh ${OPTIONS}
}

bash make.sh docker-bash

0 comments on commit f7b8746

Please sign in to comment.