Skip to content

Commit 6019a98

Browse files
alacukuadamjensenbot
authored andcommitted
update(networking): compile boringtun from a fixed version of the source code
The boringtun application seems to be heavily under developement. In order to avoid breaking liqo-gateway we choose to use a fixed version of boringtun instead of the master branch. Signed-off-by: Aldo Lacuku <[email protected]>
1 parent 33a53fc commit 6019a98

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

build/liqonet/Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
FROM ekidd/rust-musl-builder as rustBuilder
2-
WORKDIR /home/rust/src
3-
RUN git clone https://github.com/cloudflare/boringtun.git
4-
WORKDIR /home/rust/src/boringtun
5-
RUN rustup target add x86_64-unknown-linux-musl
6-
RUN cargo build --bin boringtun-cli --release
2+
3+
ARG VERSION=0.4.0
4+
5+
RUN cargo install --version $VERSION boringtun
76

87

98
FROM golang:1.18 as goBuilder
@@ -24,6 +23,6 @@ RUN apk update && \
2423
rm -rf /var/cache/apk/*
2524

2625
COPY --from=goBuilder /tmp/builder/liqonet /usr/bin/liqonet
27-
COPY --from=rustBuilder /home/rust/src/boringtun/target/x86_64-unknown-linux-musl/release/boringtun-cli /usr/bin/boringtun
26+
COPY --from=rustBuilder /home/rust/.cargo/bin/boringtun /usr/bin/boringtun
2827

2928
ENTRYPOINT [ "/usr/bin/liqonet" ]

0 commit comments

Comments
 (0)