Skip to content

Commit

Permalink
finish up the tangle dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Freddy Li authored and Freddy Li committed Jul 10, 2024
1 parent d6efa91 commit 27e9a2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Dockerfile_tangle_standalone_e2e
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ RUN git checkout sygma/polkadot-version-upgrade
RUN cargo build --release --features testnet

FROM --platform=linux/amd64 node:18.14.2
WORKDIR /node
WORKDIR /tangle

RUN apt update && apt install lsof

# Copy the node binary.
# /node/tangle
COPY --from=builder /code/tangle/ ./tangle
# /tangle
COPY --from=builder /code/tangle/ .

# /node/e2e_setup.sh
# /tangle/e2e_setup.sh
COPY --from=builder /code/e2e_setup.sh .
RUN chmod +x ./e2e_setup.sh

Expand All @@ -41,7 +41,7 @@ EXPOSE 9933
ARG mpc_address
ENV MPCADDR $mpc_address

WORKDIR /node
WORKDIR /tangle
RUN ["./e2e_setup.sh"]

ENTRYPOINT ["./tangle/scripts/run-standalone-local.sh"]
ENTRYPOINT ["./scripts/run-standalone-local.sh"]
3 changes: 0 additions & 3 deletions scripts/tangle/e2e_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ set -e

echo ${PWD}

# go into project dir which is required by the launching script
cd tangle

# Run dev node
echo "start the dev node up..."
./scripts/run-standalone-local.sh --clean > substrate_node.log 2>&1 &
Expand Down

0 comments on commit 27e9a2d

Please sign in to comment.