You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ch...@apache.org on 2021/02/03 06:19:07 UTC

[apisix-dashboard] branch master updated: fix(be): CI uses the apisix-docker project dockerfile to build apisix (#1416)

This is an automated email from the ASF dual-hosted git repository.

chenjunxu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a0a42a  fix(be): CI uses the apisix-docker project dockerfile to build apisix (#1416)
0a0a42a is described below

commit 0a0a42ae1c81f21a03c98a991b707dba6b724364
Author: JinChen <36...@users.noreply.github.com>
AuthorDate: Wed Feb 3 14:19:00 2021 +0800

    fix(be): CI uses the apisix-docker project dockerfile to build apisix (#1416)
---
 api/test/docker/Dockerfile-apisix   | 58 -------------------------------------
 api/test/docker/docker-compose.yaml |  8 ++---
 2 files changed, 4 insertions(+), 62 deletions(-)

diff --git a/api/test/docker/Dockerfile-apisix b/api/test/docker/Dockerfile-apisix
deleted file mode 100644
index 35759cb..0000000
--- a/api/test/docker/Dockerfile-apisix
+++ /dev/null
@@ -1,58 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-FROM openresty/openresty:alpine-fat AS production-stage
-
-ARG APISIX_VERSION=master
-LABEL apisix_version="${APISIX_VERSION}"
-
-RUN set -x \
-    && /bin/sed -i 's,http://dl-cdn.alpinelinux.org,https://mirrors.aliyun.com,g' /etc/apk/repositories \
-    && apk add --no-cache --virtual .builddeps \
-    automake \
-    autoconf \
-    libtool \
-    pkgconfig \
-    cmake \
-    git \
-    && luarocks config variables.OPENSSL_LIBDIR /usr/local/openresty/openssl/lib \
-    && luarocks config variables.OPENSSL_INCDIR /usr/local/openresty/openssl/include \
-    && luarocks install https://github.com/apache/apisix/raw/master/rockspec/apisix-${APISIX_VERSION}-0.rockspec --tree=/usr/local/apisix/deps \
-    && cp -v /usr/local/apisix/deps/lib/luarocks/rocks-5.1/apisix/${APISIX_VERSION}-0/bin/apisix /usr/bin/ \
-    && mv /usr/local/apisix/deps/share/lua/5.1/apisix /usr/local/apisix \
-    && apk del .builddeps build-base make unzip
-
-FROM alpine:3.11 AS last-stage
-
-# add runtime for Apache APISIX
-RUN set -x \
-    && /bin/sed -i 's,http://dl-cdn.alpinelinux.org,https://mirrors.aliyun.com,g' /etc/apk/repositories \
-    && apk add --no-cache bash libstdc++ curl
-
-WORKDIR /usr/local/apisix
-
-COPY --from=production-stage /usr/local/openresty/ /usr/local/openresty/
-COPY --from=production-stage /usr/local/apisix/ /usr/local/apisix/
-COPY --from=production-stage /usr/bin/apisix /usr/bin/apisix
-
-ENV PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin
-
-EXPOSE 9080 9443
-
-CMD ["sh", "-c", "/usr/bin/apisix init && /usr/bin/apisix init_etcd && /usr/local/openresty/bin/openresty -p /usr/local/apisix -g 'daemon off;'"]
-
-STOPSIGNAL SIGQUIT
diff --git a/api/test/docker/docker-compose.yaml b/api/test/docker/docker-compose.yaml
index e5762c8..159e26a 100644
--- a/api/test/docker/docker-compose.yaml
+++ b/api/test/docker/docker-compose.yaml
@@ -128,8 +128,8 @@ services:
   apisix:
     hostname: apisix_server1
     build:
-      context: ../../
-      dockerfile: test/docker/Dockerfile-apisix
+      context: https://github.com/apache/apisix-docker.git#master:alpine-dev/
+      dockerfile: Dockerfile
       args:
         - APISIX_VERSION=master
     restart: always
@@ -153,8 +153,8 @@ services:
   apisix2:
     hostname: apisix_server2
     build:
-      context: ../../
-      dockerfile: test/docker/Dockerfile-apisix
+      context: https://github.com/apache/apisix-docker.git#master:alpine-dev/
+      dockerfile: Dockerfile
       args:
         - APISIX_VERSION=master
     restart: always