Move Docker scripts (#138)

Just reorganizing
This commit is contained in:
Cecile Tonglet
2020-07-16 07:46:03 +02:00
committed by GitHub
parent e40bef8641
commit 537a311587
10 changed files with 5 additions and 5 deletions
@@ -21,7 +21,7 @@ RUN apt-get update && apt-get install curl netcat -y && \
curl -sSo /wait-for-it.sh https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh && \ curl -sSo /wait-for-it.sh https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh && \
chmod +x /wait-for-it.sh chmod +x /wait-for-it.sh
# the only thing left to do is to actually run the transaction. # the only thing left to do is to actually run the transaction.
COPY ./scripts/register_para.sh /usr/bin COPY ./docker/scripts/register_para.sh /usr/bin
# unset the previous stage's entrypoint # unset the previous stage's entrypoint
ENTRYPOINT [] ENTRYPOINT []
CMD [ "/usr/bin/register_para.sh" ] CMD [ "/usr/bin/register_para.sh" ]
@@ -4,7 +4,7 @@ set -e
cd "$(cd "$(dirname "$0")" && git rev-parse --show-toplevel)" cd "$(cd "$(dirname "$0")" && git rev-parse --show-toplevel)"
# shellcheck source=dc.sh # shellcheck source=dc.sh
source scripts/dc.sh source docker/scripts/dc.sh
dc build dc build
dc up -d dc up -d
@@ -4,6 +4,6 @@ set -e
cd "$(cd "$(dirname "$0")" && git rev-parse --show-toplevel)" cd "$(cd "$(dirname "$0")" && git rev-parse --show-toplevel)"
# shellcheck source=dc.sh # shellcheck source=dc.sh
source scripts/dc.sh source docker/scripts/dc.sh
dc down --volumes --remove-orphans dc down --volumes --remove-orphans
@@ -39,9 +39,9 @@ RUN apt-get update && apt-get install jq curl bash -y && \
yarn global add @polkadot/api-cli@0.10.0-beta.14 yarn global add @polkadot/api-cli@0.10.0-beta.14
COPY --from=builder \ COPY --from=builder \
/paritytech/cumulus/target/release/cumulus-test-parachain-collator /usr/bin /paritytech/cumulus/target/release/cumulus-test-parachain-collator /usr/bin
COPY ./scripts/inject_bootnodes.sh /usr/bin COPY ./docker/scripts/inject_bootnodes.sh /usr/bin
CMD ["/usr/bin/inject_bootnodes.sh"] CMD ["/usr/bin/inject_bootnodes.sh"]
COPY ./scripts/healthcheck.sh /usr/bin/ COPY ./docker/scripts/healthcheck.sh /usr/bin/
HEALTHCHECK --interval=300s --timeout=75s --start-period=30s --retries=3 \ HEALTHCHECK --interval=300s --timeout=75s --start-period=30s --retries=3 \
CMD ["/usr/bin/healthcheck.sh"] CMD ["/usr/bin/healthcheck.sh"]