Skip to content

Commit f831a29

Browse files
authored
modify alpine build version && add readme for alpine (#55)
*  drop allow_admin for docker compose test * add readme for apline based building image
1 parent 5614988 commit f831a29

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM node:10-alpine3.11 AS build-stage
22

3-
ARG APISIX_VERSION=1.1
3+
ARG APISIX_VERSION=1.3
44

55
RUN set -x \
66
&& /bin/sed -i 's,http://dl-cdn.alpinelinux.org,https://mirrors.aliyun.com,g' /etc/apk/repositories \
@@ -14,7 +14,7 @@ RUN set -x \
1414

1515
FROM openresty/openresty:alpine-fat AS production-stage
1616

17-
ARG APISIX_VERSION=1.1
17+
ARG APISIX_VERSION=1.3
1818
LABEL apisix_version="${APISIX_VERSION}"
1919

2020
RUN set -x \

alpine/README.MD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### When building with `alpine` basic image, please specify `APISIX_VERSION` through `build-arg`
2+
3+
```
4+
docker build --build-arg APISIX_VERSION=$APISIX_VERSION -t $IMAGE_NAME .
5+
```

example/apisix_conf/config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ apisix:
3434
# disk_path: "/tmp/disk_cache_two"
3535
# cache_levels: "1:2"
3636

37-
allow_admin: # http://nginx.org/en/docs/http/ngx_http_access_module.html#allow
38-
- 127.0.0.0/24 # If we don't set any IP list, then any IP access is allowed by default.
39-
- 172.17.0.0/24
37+
# allow_admin: # http://nginx.org/en/docs/http/ngx_http_access_module.html#allow
38+
# - 127.0.0.0/24 # If we don't set any IP list, then any IP access is allowed by default.
39+
# - 172.17.0.0/24
4040
# - "::/64"
4141
# port_admin: 9180 # use a separate port
4242

0 commit comments

Comments
 (0)