From 27e9a2d09af1ed0e1bf8b291aae8cd7dba7fa7e5 Mon Sep 17 00:00:00 2001 From: Freddy Li Date: Wed, 10 Jul 2024 10:43:55 -0400 Subject: [PATCH] finish up the tangle dockerfile --- Dockerfile_tangle_standalone_e2e | 12 ++++++------ scripts/tangle/e2e_setup.sh | 3 --- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Dockerfile_tangle_standalone_e2e b/Dockerfile_tangle_standalone_e2e index 4ab8d98..bd13584 100644 --- a/Dockerfile_tangle_standalone_e2e +++ b/Dockerfile_tangle_standalone_e2e @@ -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 @@ -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"] diff --git a/scripts/tangle/e2e_setup.sh b/scripts/tangle/e2e_setup.sh index 815f153..5ee4019 100755 --- a/scripts/tangle/e2e_setup.sh +++ b/scripts/tangle/e2e_setup.sh @@ -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 &