Skip to content

Commit

Permalink
i
Browse files Browse the repository at this point in the history
  • Loading branch information
hanl5 committed Oct 9, 2024
1 parent ee4460c commit 561cc68
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
3 changes: 1 addition & 2 deletions docker/php_base_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ cd "$(
)/" || exit
set -e

docker images | grep composer

echo "~~~ build alpine grpc php ~~~"
docker images | grep composer
docker build -f php_grpc_base.dockerfile -t feuyeux/grpc_php_base:1.0.0 .
docker run -it --rm feuyeux/grpc_php_base:1.0.0 composer --version
1 change: 1 addition & 0 deletions docker/php_push.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
docker push feuyeux/grpc_php_base:1.0.0
docker push feuyeux/grpc_server_php:1.0.0
docker push feuyeux/grpc_client_php:1.0.0
21 changes: 14 additions & 7 deletions hello-grpc-php/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ $ php -version
$ composer --version
```

### grpc module

```sh
# PECL(The PHP Extension Community Library)
# PEAR(PHP Extension and Application Repository)
Expand All @@ -40,8 +42,10 @@ extension=grpc.so
```sh
extension=./php_grpc.dll
extension=./php_protobuf.dll
```

$ php --modules | grep grpc
```sh
php --modules | grep grpc
```

## composer
Expand All @@ -52,21 +56,24 @@ $ php --modules | grep grpc

- <https://packagist.org/packages/grpc/grpc>
- <https://packagist.org/packages/google/protobuf>
- <https://packagist.org/packages/ramsey/uuid>
- <https://packagist.org/packages/apache/log4php>
- <https://packagist.org/packages/phpunit/phpunit>

[composer.json](composer.json)

## build

### generate code
### load dependencies

```sh
sh init.sh
composer install
```

### load dependencies
## build

### generate code

```sh
composer install
sh init.sh
```

```sh
Expand Down
2 changes: 1 addition & 1 deletion hello-grpc-php/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"require-dev": {
"phpunit/phpunit": "10.5.20"
"phpunit/phpunit": "^11"
},
"repositories": {
"packagist": {
Expand Down

0 comments on commit 561cc68

Please sign in to comment.