Skip to content

Commit 003f037

Browse files
committed
wip
1 parent b388b26 commit 003f037

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

build/ubuntu/Dockerfile.builder

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
ARG prebuilder=quay.io/wire/ubuntu20-prebuilder
22

3+
FROM rust:1.63 as mls-test-cli-builder
4+
5+
# compile mls-test-cli tool
6+
RUN cd /tmp && \
7+
git clone https://github.com/wireapp/mls-test-cli
8+
9+
RUN cd /tmp/mls-test-cli && RUSTFLAGS='-C target-feature=+crt-static' cargo install --bins --target x86_64-unknown-linux-gnu --path .
10+
311
FROM ${prebuilder}
12+
13+
COPY --from=mls-test-cli-builder /usr/bin/mls-test-cli /usr/bin/mls-test-cli
14+
415
WORKDIR /
516

617
# Download stack indices and compile/cache dependencies to speed up subsequent
@@ -9,14 +20,14 @@ WORKDIR /
920
# We build docs for haskell-src-exts without hyperlinking enabled to avoid
1021
# a Haddock segfault. See https://github.com/haskell/haddock/issues/928
1122

12-
ARG wire_server_branch=develop
13-
ARG THREADS=4
14-
RUN set -x && \
15-
echo ${wire_server_branch} && \
16-
git clone -b ${wire_server_branch} https://github.com/wireapp/wire-server.git && \
17-
cd /wire-server && \
18-
cabal update && \
19-
cabal build all --dependencies-only && \
20-
cd / && \
21-
# we run the build only to cache the built source in /root/.cabal, we can remove the source code itself
22-
rm -rf /wire-server
23+
# ARG wire_server_branch=develop
24+
# ARG THREADS=4
25+
# RUN set -x && \
26+
# echo ${wire_server_branch} && \
27+
# git clone -b ${wire_server_branch} https://github.com/wireapp/wire-server.git && \
28+
# cd /wire-server && \
29+
# cabal update && \
30+
# cabal build all --dependencies-only && \
31+
# cd / && \
32+
# # we run the build only to cache the built source in /root/.cabal, we can remove the source code itself
33+
# rm -rf /wire-server

0 commit comments

Comments
 (0)