Skip to content

Commit

Permalink
chore: remove etcdctl (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
shreemaan-abhishek authored Sep 28, 2023
1 parent d0cc61a commit bd073cf
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
1 change: 0 additions & 1 deletion all-in-one/apisix-dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ RUN set -x \
&& mv /usr/local/apisix/deps/share/lua/5.1/apisix /usr/local/apisix \
&& apk del .builddeps build-base make unzip


# Build etcd
FROM alpine:3.13 AS etcd-stage

Expand Down
3 changes: 2 additions & 1 deletion all-in-one/apisix/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ USER root

RUN wget https://github.com/etcd-io/etcd/releases/download/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz \
&& tar -zxvf etcd-${ETCD_VERSION}-linux-amd64.tar.gz \
&& mv etcd-${ETCD_VERSION}-linux-amd64/* /usr/bin/
&& mv etcd-${ETCD_VERSION}-linux-amd64/* /usr/bin/ \
&& rm /usr/local/openresty/bin/etcdctl


WORKDIR /usr/local/apisix
Expand Down
3 changes: 2 additions & 1 deletion centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ ENV PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/

# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /usr/local/apisix/logs/access.log \
&& ln -sf /dev/stderr /usr/local/apisix/logs/error.log
&& ln -sf /dev/stderr /usr/local/apisix/logs/error.log \
&& rm /usr/local/openresty/bin/etcdctl

EXPOSE 9080 9443

Expand Down
3 changes: 2 additions & 1 deletion dashboard/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ RUN set -x \
&& apk add --no-cache --virtual .builddeps git \
&& git clone https://github.com/apache/apisix-dashboard.git -b ${APISIX_DASHBOARD_TAG} /usr/local/apisix-dashboard \
&& cd /usr/local/apisix-dashboard && git clean -Xdf \
&& rm -f ./.githash && git log --pretty=format:"%h" -1 > ./.githash
&& rm -f ./.githash && git log --pretty=format:"%h" -1 > ./.githash \
&& rm /usr/local/openresty/bin/etcdctl

FROM --platform=$BUILDPLATFORM golang:1.19 as api-builder

Expand Down
3 changes: 2 additions & 1 deletion dashboard/Dockerfile.centos
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ RUN set -x \
&& apk add --no-cache --virtual .builddeps git \
&& git clone https://github.com/apache/apisix-dashboard.git -b ${APISIX_DASHBOARD_TAG} /usr/local/apisix-dashboard \
&& cd /usr/local/apisix-dashboard && git clean -Xdf \
&& rm -f ./.githash && git log --pretty=format:"%h" -1 > ./.githash
&& rm -f ./.githash && git log --pretty=format:"%h" -1 > ./.githash \
&& rm /usr/local/openresty/bin/etcdctl

FROM --platform=$BUILDPLATFORM golang:1.19 as api-builder

Expand Down
1 change: 1 addition & 0 deletions debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN set -ex; \
&& apt install -y apisix=${APISIX_VERSION}-0 \
&& apt-get purge -y --auto-remove \
&& rm -f /etc/apt/sources.list.d/openresty.list /etc/apt/sources.list.d/apisix.list \
&& rm /usr/local/openresty/bin/etcdctl \
&& openresty -V \
&& apisix version

Expand Down
3 changes: 2 additions & 1 deletion redhat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ ENV PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/

# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /usr/local/apisix/logs/access.log \
&& ln -sf /dev/stderr /usr/local/apisix/logs/error.log
&& ln -sf /dev/stderr /usr/local/apisix/logs/error.log \
&& rm /usr/local/openresty/bin/etcdctl

EXPOSE 9080 9443

Expand Down

0 comments on commit bd073cf

Please sign in to comment.