2022-03-22 11:03:15 -04:00
|
|
|
FROM golang:1.18
|
|
|
|
ENV GOPRIVATE=github.com/edgelesssys/*
|
|
|
|
|
2022-04-20 05:33:02 -04:00
|
|
|
RUN apt-get update && apt-get install pkg-config cmake iproute2 iputils-ping libssl-dev libcryptsetup12 libcryptsetup-dev -y
|
2022-03-22 11:03:15 -04:00
|
|
|
|
2022-03-28 14:28:00 -04:00
|
|
|
WORKDIR /constellation
|
|
|
|
COPY go.mod .
|
|
|
|
COPY go.sum .
|
|
|
|
RUN go mod download
|
|
|
|
|
2022-03-22 11:03:15 -04:00
|
|
|
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
|
2022-03-28 14:28:00 -04:00
|
|
|
RUN rm -rf build && mkdir build && cd build && cmake .. && make debug_coordinator -j`nproc` && cd /
|
2022-03-22 11:03:15 -04:00
|
|
|
|
|
|
|
CMD wireguard-go wg0 && /constellation/build/debug_coordinator -debug
|