coordinator-integrationtest: docker-build cache go dependencies (#19)

This commit is contained in:
Benedict Schlüter 2022-03-28 20:28:00 +02:00 committed by GitHub
parent aac6e0b239
commit 9df71da33f

View File

@ -3,10 +3,15 @@ ENV GOPRIVATE=github.com/edgelesssys/*
RUN apt-get update && apt-get install cmake iproute2 iputils-ping libssl-dev -y
WORKDIR /constellation
COPY go.mod .
COPY go.sum .
RUN go mod download
RUN git clone -b v1.0.20210914 --depth=1 https://git.zx2c4.com/wireguard-tools && make -C wireguard-tools/src -j`nproc` && make -C wireguard-tools/src install
RUN git clone -b 0.0.20211016 --depth=1 https://git.zx2c4.com/wireguard-go && cd wireguard-go && make -j`nproc` && make install
COPY . /constellation
RUN cd /constellation && rm -rf build && mkdir build && cd build && cmake .. && make debug_coordinator -j`nproc` && cd /
RUN rm -rf build && mkdir build && cd build && cmake .. && make debug_coordinator -j`nproc` && cd /
CMD wireguard-go wg0 && /constellation/build/debug_coordinator -debug