调整quickstart 脚本

This commit is contained in:
jingjingxyk 2023-05-24 13:30:22 +08:00
parent f831b4d61d
commit 7fb3d05b2c
9 changed files with 52 additions and 76 deletions

View File

@ -8,13 +8,13 @@
```bash
# 启动 debian 11 容器环境
sh quickstart/linux/x86_64/run-debian-11-container.sh
sh quickstart/linux/run-debian-11-container.sh
# 进入容器
sh quickstart/linux/x86_64/connection-static-php-cli.sh
sh quickstart/linux/connection-static-php-cli.sh
# 准备构建基础软件
sh quickstart/linux/x86_64/debian-11-init.sh
sh quickstart/linux/debian-11-init.sh
```
@ -23,12 +23,12 @@ sh quickstart/linux/x86_64/debian-11-init.sh
```bash
# 启动 alpine 容器环境
sh quickstart/linux/x86_64/run-alpine-3.16-container.sh
sh quickstart/linux/run-alpine-3.16-container.sh
# 进入容器
sh sh quickstart/linux/x86_64/connection-static-php-cli.sh
sh sh quickstart/linux/connection-static-php-cli.sh
# 准备构建基础软件
sh quickstart/linux/x86_64/alpine-3.16-init.sh
sh quickstart/linux/alpine-3.16-init.sh
```

View File

@ -6,7 +6,7 @@ __DIR__=$(
pwd
)
__PROJECT__=$(
cd ${__DIR__}/../../../
cd ${__DIR__}/../../
pwd
)
cd ${__DIR__}

View File

@ -6,7 +6,7 @@ __DIR__=$(
pwd
)
__PROJECT__=$(
cd ${__DIR__}/../../../
cd ${__DIR__}/../../
pwd
)
cd ${__DIR__}

View File

@ -1,44 +0,0 @@
#!/bin/bash
set -exu
__DIR__=$(
cd "$(dirname "$0")"
pwd
)
__PROJECT__=$(
cd ${__DIR__}/../../../
pwd
)
cd ${__PROJECT__}
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
chmod +x bin/spc
./bin/spc fetch --all --debug
./bin/spc list-ext
EXTENSION="calendar,ctype,exif,fileinfo,filter,ftp"
EXTENSION="${EXTENSION},session,tokenizer"
EXTENSION="${EXTENSION},phar,posix"
EXTENSION="${EXTENSION},iconv"
EXTENSION="${EXTENSION},xml,dom,simplexml,xmlwriter,xmlreader"
EXTENSION="${EXTENSION},phar,posix"
EXTENSION="${EXTENSION},soap"
EXTENSION="${EXTENSION},mbstring,mbregex"
EXTENSION="${EXTENSION},openssl"
EXTENSION="${EXTENSION},sockets,gmp,bcmath"
EXTENSION="${EXTENSION},pcntl"
EXTENSION="${EXTENSION},curl"
EXTENSION="${EXTENSION},zlib,zip,bz2"
EXTENSION="${EXTENSION},gd"
EXTENSION="${EXTENSION},redis"
EXTENSION="${EXTENSION},pdo,pdo_mysql,pdo_sqlite,"
EXTENSION="${EXTENSION},mysqlnd,sqlite3"
EXTENSION="${EXTENSION},mongodb"
./bin/spc build "${EXTENSION}" --build-cli --cc=clang --cxx=clang++ --debug
# ./bin/spc build "${EXTENSION}" --build-cli --cc=gcc --cxx=g++ --debug

View File

@ -1,24 +0,0 @@
#!/bin/bash
set -exu
__DIR__=$(
cd "$(dirname "$0")"
pwd
)
__PROJECT__=$(
cd ${__DIR__}/../../../
pwd
)
cd ${__PROJECT__}
export PATH=${__PROJECT__}/bin/runtime:$PATH
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
chmod +x bin/spc
./bin/spc fetch --all --debug
./bin/spc list-ext
./bin/spc build "bcmath,openssl,tokenizer,sqlite3,pdo,pdo_sqlite,ftp,curl" --cc=clang --cxx=clang++ --debug

44
quickstart/prepare.sh Normal file
View File

@ -0,0 +1,44 @@
#!/bin/bash
set -exu
__DIR__=$(
cd "$(dirname "$0")"
pwd
)
__PROJECT__=$(
cd ${__DIR__}/../
pwd
)
cd ${__PROJECT__}
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
chmod +x bin/spc
./bin/spc fetch --all --debug
./bin/spc list-ext
EXTENSIONS="calendar,ctype,exif,fileinfo,filter,ftp"
EXTENSIONS="${EXTENSIONS},session,tokenizer"
EXTENSIONS="${EXTENSIONS},phar,posix"
EXTENSIONS="${EXTENSIONS},iconv"
EXTENSIONS="${EXTENSIONS},xml,dom,simplexml,xmlwriter,xmlreader"
EXTENSIONS="${EXTENSIONS},phar,posix"
EXTENSIONS="${EXTENSIONS},soap"
EXTENSIONS="${EXTENSIONS},mbstring,mbregex"
EXTENSIONS="${EXTENSIONS},openssl"
EXTENSIONS="${EXTENSIONS},sockets,gmp,bcmath"
EXTENSIONS="${EXTENSIONS},pcntl"
EXTENSIONS="${EXTENSIONS},curl"
EXTENSIONS="${EXTENSIONS},zlib,zip,bz2"
EXTENSIONS="${EXTENSIONS},gd"
EXTENSIONS="${EXTENSIONS},redis"
EXTENSIONS="${EXTENSIONS},pdo,pdo_mysql,pdo_sqlite"
EXTENSIONS="${EXTENSIONS},mysqlnd,sqlite3"
EXTENSIONS="${EXTENSIONS},mongodb"
./bin/spc build "${EXTENSIONS}" --build-cli --cc=clang --cxx=clang++ --debug
# ./bin/spc build "${EXTENSIONS}" --build-cli --cc=gcc --cxx=g++ --debug