From 30f01c6ff09e87e2699704da72d84a5d445b4ef9 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Wed, 17 Jun 2020 02:57:14 -0400 Subject: [PATCH] Use updated 'zebrad seed' command, move binary to root, no workdir --- .github/workflows/push.yml | 2 +- Dockerfile | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 014d6a75..bb8400ea 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -56,5 +56,5 @@ jobs: gcloud compute instance-groups managed create "zebrad-$SHORT_BRANCH_NAME-$SHA7" \ --template "zebrad-$SHORT_BRANCH_NAME-$SHA7" \ --base-instance-name "zebrad-$SHORT_BRANCH_NAME-$SHA7" \ - --size 3 \ + --size 1 \ --zone "$GCLOUD_ZONE" diff --git a/Dockerfile b/Dockerfile index eadcfd0e..4534fcea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,8 +19,7 @@ RUN rustc -V; cargo -V; rustup -V; cargo test --all && cargo build --release FROM debian:buster-slim -WORKDIR /zebra -COPY --from=builder /zebra/target/release/zebrad . +COPY --from=builder /zebra/target/release/zebrad / EXPOSE 8233 EXPOSE 18233 -CMD [ "./zebrad", "seed" ] +CMD [ "/zebrad", "start" ]