-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile_tangle_standalone_e2e
51 lines (38 loc) · 1.24 KB
/
Dockerfile_tangle_standalone_e2e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# The Licensed Work is (c) 2022 Sygma
# SPDX-License-Identifier: LGPL-3.0-only
FROM --platform=linux/amd64 paritytech/ci-linux:production as builder
WORKDIR /code
COPY ./scripts/tangle .
# build
RUN git clone https://github.com/webb-tools/tangle.git ./tangle
WORKDIR /code/tangle
RUN git checkout sygma/polkadot-version-upgrade
RUN cargo build --release --features testnet
FROM --platform=linux/amd64 node:18.14.2
WORKDIR /tangle
RUN apt update && apt install lsof
# Copy the node binary.
# /tangle/scripts
# /tangle/target/release/tangle
# /tangle/.git
COPY --from=builder /code/tangle/scripts ./scripts
COPY --from=builder /code/tangle/target/release/tangle ./target/release/tangle
COPY --from=builder /code/tangle/.git ./.git
# /tangle/e2e_setup.sh
COPY --from=builder /code/e2e_setup.sh .
RUN chmod +x ./e2e_setup.sh
# Install root certs, see: https://github.com/paritytech/substrate/issues/9984
RUN apt update && \
apt install -y ca-certificates && \
update-ca-certificates && \
apt remove ca-certificates -y && \
rm -rf /var/lib/apt/lists/*
# JSON-RPC WS server
EXPOSE 9944
# JSON-RPC HTTP server
EXPOSE 9933
ARG mpc_address
ENV MPCADDR $mpc_address
WORKDIR /tangle
RUN ["./e2e_setup.sh"]
ENTRYPOINT ["./scripts/run-standalone-local.sh"]