Skip to content

Commit

Permalink
proxy: use confd fork to enable arm support
Browse files Browse the repository at this point in the history
  • Loading branch information
iwilltry42 committed Jun 18, 2020
1 parent d2deb02 commit 4ca19db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ steps:
password:
from_secret: docker_password
build_args:
- ARCH=arm64
- ARCH=arm
when:
event:
- tag
Expand Down
14 changes: 7 additions & 7 deletions proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM nginx:1.16.0-alpine
ARG ARCH
# set ARCH from build-arg, if it's set
ENV ARCH=${ARCH}
# if ARCH unset, default to amd64
ENV ARCH=${ARCH:-amd64}
RUN apk -U --no-cache add curl ca-certificates\
ARG CONFD_REPO=iwilltry42/confd
ARG CONFD_VERSION=0.16.1
ARG OS=linux
ARG ARCH=amd64
RUN echo "Building for '${OS}/${ARCH}'..." \
&& apk -U --no-cache add curl ca-certificates\
&& mkdir -p /etc/confd \
&& curl -sLf https://github.com/kelseyhightower/confd/releases/download/v0.16.0/confd-0.16.0-linux-${ARCH} > /usr/bin/confd \
&& curl -sLf "https://github.com/${CONFD_REPO}/releases/download/v${CONFD_VERSION}/confd-${CONFD_VERSION}-${OS}-${ARCH}" > /usr/bin/confd \
&& chmod +x /usr/bin/confd \
&& apk del curl

Expand Down

0 comments on commit 4ca19db

Please sign in to comment.