Skip to content

Commit

Permalink
chore: update test container image
Browse files Browse the repository at this point in the history
  • Loading branch information
costela committed Jun 30, 2022
1 parent e34f1f8 commit 24d3361
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*.dll
*.so
*.dylib
wesher
wesher-*
/wesher
/wesher-*

# Test binary, build with `go test -c`
*.test
Expand Down
8 changes: 3 additions & 5 deletions tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
FROM golang:1.18
FROM docker.io/golang:1.18

ARG DEBIAN_FRONTEND=noninteractive

RUN apt update \
&& apt install -y git make gcc \
&& apt install -y git make gcc iputils-ping \
&& rm -rf /var/lib/apt/lists/*
RUN go get -d golang.zx2c4.com/wireguard \
&& cd /go/src/golang.zx2c4.com/wireguard \
&& make install
RUN go install golang.zx2c4.com/[email protected]

COPY entrypoint.sh /

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ run_test_container() {
shift
local hostname=$1
shift
docker run -d --cap-add=NET_ADMIN --name ${name} --hostname ${hostname} -v $(pwd):/app --network=wesher_test costela/wesher-test "$@"
docker run -d --cap-add=NET_ADMIN --name ${name} --hostname ${hostname} -v $(pwd):/app --network=wesher_test docker.io/costela/wesher-test "$@"
started_containers[$name]=$name
}

Expand Down
2 changes: 1 addition & 1 deletion tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ if [ ! -e /dev/net/tun ]; then
mknod /dev/net/tun c 10 200
fi

wireguard-go ${iface:-wgoverlay}
wireguard ${iface:-wgoverlay}
/app/wesher --log-level debug --cluster-key 'ILICZ3yBMCGAWNIq5Pn0bewBVimW3Q2yRVJ/Be+b1Uc=' "${args[@]}"

0 comments on commit 24d3361

Please sign in to comment.