Skip to content

Commit

Permalink
更新基础镜像版本
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Jul 8, 2022
1 parent 6b90158 commit fc98149
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -503,17 +503,19 @@ make_php() {
}

help() {
echo "./make.sh docker-bash"
echo "./make.sh config"
echo "./make.sh build"
echo "./make.sh archive"
echo "./make.sh all-library"
echo "./make.sh clean-all-library"
echo "./make.sh sync"
}

if [ "$1" = "docker-build" ] ;then
sudo docker build -t phpswoole/swoole_cli_os:1.2 .
sudo docker build -t phpswoole/swoole_cli_os:1.4 .
elif [ "$1" = "docker-bash" ] ;then
sudo docker run -it -v $ROOT:/work -v /home/htf/workspace/swoole:/work/ext/swoole phpswoole/swoole_cli_os:1.2 /bin/bash
sudo docker run -it -v $ROOT:/work -v /home/htf/workspace/swoole:/work/ext/swoole phpswoole/swoole_cli_os:1.4 /bin/bash
exit 0
elif [ "$1" = "all-library" ] ;then
make_all_library
Expand Down Expand Up @@ -758,6 +760,7 @@ elif [ "$1" = "sync" ] ;then
cp -r $SRC/main ./
cp -r $SRC/build ./
cp -r ./TSRM/TSRM.h main/TSRM.h
cp -r $SRC/configure.ac ./
exit 0
else
help
Expand Down
2 changes: 1 addition & 1 deletion prepare.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

$p = new Preprocessor(__DIR__);
$p->setPhpSrcDir('/home/htf/soft/php-8.1.8');
$p->setDockerVersion('1.2');
$p->setDockerVersion('1.4');
$p->setSwooleDir('/home/htf/workspace/swoole');

$endCallback = function() {};
Expand Down

0 comments on commit fc98149

Please sign in to comment.