Skip to content
Permalink
Browse files
chore: adjust the matching APISIX version to 2.12.0 (#124)
  • Loading branch information
tzssangglass committed Jan 27, 2022
1 parent cbd3b3a commit 65c6fcda68e050fb79e6d935127d5ae7eb65b549
Showing 3 changed files with 6 additions and 6 deletions.
@@ -28,7 +28,7 @@ Version Matrix
| apisix-java-plugin-runner | APISIX |
|---------------------------|-----------------------------------------------------------------------------|
| 0.1.0 | >= [2.7.0](https://github.com/apache/apisix/blob/master/CHANGELOG.md#270) |
| 0.2.0 | >= [2.10.2](https://github.com/apache/apisix/blob/master/CHANGELOG.md#2102) |
| 0.2.0 | >= [2.12.0](https://github.com/apache/apisix/blob/master/CHANGELOG.md#2102) |

How it Works
-------------
@@ -29,7 +29,7 @@ Prerequisites
-------------

* JDK 11
* APISIX 2.10.x
* APISIX 2.12.0
* Clone the [apisix-java-plugin-runner](https://github.com/apache/apisix-java-plugin-runner) project.
* Refer to [Debug](how-it-works.md#debug) to build the debug environment.

@@ -3,7 +3,7 @@
### 准备工作

* JDK 11
* APISIX 2.10.0
* APISIX 2.12.0
* Clone the [apisix-java-plugin-runner](https://github.com/apache/apisix-java-plugin-runner) project。

### 开发扩展插件过滤器
@@ -54,7 +54,7 @@ apache-apisix-java-plugin-runner-0.1.0-bin.tar.gz
`dist`目录添加`Dockerfile`文件

```dockerfile
FROM apache/apisix:2.10.0-alpine
FROM apache/apisix:${version}-alpine
RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories && apk add --no-cache openjdk8-jre
@@ -66,7 +66,7 @@ ADD apache-apisix-java-plugin-runner-0.1.0-bin.tar.gz /usr/local/

```shell
cd dist
docker build -t apache/apisix:2.10.0-alpine-with-java-plugin .
docker build -t apache/apisix:${version}-alpine-with-java-plugin .
```

最后在 APISIX 的 `config.yaml` 文件中增加配置,如下
@@ -76,7 +76,7 @@ ext-plugin:
cmd: ['java', '-jar', '-Xmx4g', '-Xms4g', '/path/to/apisix-runner-bin/apisix-java-plugin-runner.jar']
```

构建完成的 `apache/apisix:2.10.0-alpine-with-java-plugin` 镜像内即包含 APISIX 与 apisix-java-plugun-runner。
构建完成的 `apache/apisix:${version}-alpine-with-java-plugin` 镜像内即包含 APISIX 与 apisix-java-plugun-runner。

### 使用插件

0 comments on commit 65c6fcd

Please sign in to comment.