Browse Source

Merge pull request #840 from gravitl/bugfix_v0.11.0_docker_netclient_arm64

Bugfix v0.11.0 docker netclient arm64
dcarns 3 years ago
parent
commit
84632c410e
2 changed files with 2 additions and 20 deletions
  1. 2 20
      docker/Dockerfile-netclient-multiarch
  2. BIN
      netclient/netclient.syso

+ 2 - 20
docker/Dockerfile-netclient-multiarch

@@ -1,4 +1,4 @@
-FROM gravitl/builder:latest as builder
+FROM golang:latest as builder
 # add glib support daemon manager
 # add glib support daemon manager
 WORKDIR /app
 WORKDIR /app
 ARG version
 ARG version
@@ -9,32 +9,14 @@ ENV GO111MODULE=auto
 
 
 RUN GOOS=linux CGO_ENABLED=0 /usr/local/go/bin/go build -ldflags="-w -s -X 'main.version=${TAG}'" -o netclient-app netclient/main.go
 RUN GOOS=linux CGO_ENABLED=0 /usr/local/go/bin/go build -ldflags="-w -s -X 'main.version=${TAG}'" -o netclient-app netclient/main.go
 
 
-WORKDIR /root/
-
-RUN apk add --update git build-base libmnl-dev iptables
-
-RUN git clone https://git.zx2c4.com/wireguard-go && \
-    cd wireguard-go && \
-    make && \
-    make install
-
-ENV WITH_WGQUICK=yes
-RUN git clone https://git.zx2c4.com/wireguard-tools && \
-    cd wireguard-tools && \
-    cd src && \
-    make && \
-    make install
-
 FROM alpine:3.13.6
 FROM alpine:3.13.6
 
 
 WORKDIR /root/
 WORKDIR /root/
 
 
-RUN apk add --no-cache --update bash libmnl gcompat iptables openresolv iproute2
-COPY --from=builder /usr/bin/wireguard-go /usr/bin/wg* /usr/bin/
+RUN apk add --no-cache --update bash libmnl gcompat iptables openresolv iproute2 wireguard-tools 
 COPY --from=builder /app/netclient-app ./netclient
 COPY --from=builder /app/netclient-app ./netclient
 COPY --from=builder /app/scripts/netclient.sh .
 COPY --from=builder /app/scripts/netclient.sh .
 RUN chmod 0755 netclient && chmod 0755 netclient.sh
 RUN chmod 0755 netclient && chmod 0755 netclient.sh
 
 
-ENV WG_QUICK_USERSPACE_IMPLEMENTATION=wireguard-go
 
 
 ENTRYPOINT ["/bin/sh", "./netclient.sh"]
 ENTRYPOINT ["/bin/sh", "./netclient.sh"]

BIN
netclient/netclient.syso