diff --git a/build/images/wireguard-go/Dockerfile b/build/images/wireguard-go/Dockerfile deleted file mode 100644 index 2a273bfd72a..00000000000 --- a/build/images/wireguard-go/Dockerfile +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 2022 Antrea Authors -# -# Licensed 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. - -ARG GO_VERSION -ARG WIREGUARD_GO_VERSION - -FROM golang:${GO_VERSION} as builder - -RUN git clone https://git.zx2c4.com/wireguard-go && \ - cd wireguard-go && \ - git checkout ${WIREGUARD_GO_VERSION} && \ - make && \ - make install - -RUN git clone https://git.zx2c4.com/wireguard-tools && \ - cd wireguard-tools && \ - cd src && \ - make && \ - make install - -FROM ubuntu:22.04 -COPY --from=builder /usr/bin/wireguard-go /usr/bin/wg /usr/bin/ diff --git a/build/images/wireguard-go/README.md b/build/images/wireguard-go/README.md deleted file mode 100644 index 6d02d0560fe..00000000000 --- a/build/images/wireguard-go/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# images/wireguard-go - -This Docker image is a very lightweight image based on Ubuntu 22.04 which -includes WireGuard golang implementation and wireguard-tools. It can be used -for Kind clusters for tests when injected as a sidecar to antrea-agent. -The version is available at . - -If you need to build a new version of the image and push it to Dockerhub, you -can run the following: - -```bash -cd build/images/wireguard-go -GO_VERSION=$(head -n 1 ../deps/go-version) -WIREGUARD_GO_VERSION=0.0.20210424 -docker build -t antrea/wireguard-go:$WIREGUARD_GO_VERSION --build-arg GO_VERSION=$GO_VERSION --build-arg WIREGUARD_GO_VERSION=$WIREGUARD_GO_VERSION . -docker push antrea/wireguard-go:$WIREGUARD_GO_VERSION -``` - -The `docker push` command will fail if you do not have permission to push to the -`antrea` Dockerhub repository.