Skip to content
Prev Previous commit
Next Next commit
KP-86: Reduce footprint of final image, add shell scripts for conveni…
…ence use, rename "local-testnet" to "kilt-testnet"
  • Loading branch information
Andreas Pasch committed Dec 4, 2018
commit 8a37bbc1dd792e66eb365f9431fccc352ba534b8
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,18 @@ RUN cargo build && cargo test
FROM ubuntu:xenial

WORKDIR /runtime

RUN apt -y update && \
apt install -y --no-install-recommends \
software-properties-common curl file binutils binutils-dev snapcraft \
ca-certificates zip dpkg-dev python rhash rpm openssl gettext\
build-essential pkg-config libssl-dev libudev-dev ruby-dev time

RUN mkdir -p /runtime/target/debug/
COPY --from=builder /build/target/debug/node ./target/debug/node
COPY --from=builder /build/scripts/kilt-node-testnet.sh ./kilt-node-testnet.sh
COPY --from=builder /build/scripts/lookup-master-bootnode-testnet.sh ./lookup-master-bootnode-testnet.sh
COPY --from=builder /build/scripts/kilt-master-bootnode-testnet.sh ./kilt-master-bootnode-testnet.sh
COPY --from=builder /build/kilt-node-testnet.sh ./kilt-node-testnet.sh
COPY --from=builder /build/lookup-master-bootnode-testnet.sh ./lookup-master-bootnode-testnet.sh
COPY --from=builder /build/kilt-master-bootnode-testnet.sh ./kilt-master-bootnode-testnet.sh

RUN chmod a+x *.sh
RUN ls -la .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
#

echo "Starting KILT master boot node..."
./../target/debug/node --chain kilt-testnet --validator --telemetry-url ws://telemetry-backend.kilt-prototype.tk:1024 "$@"
./target/debug/node --chain kilt-testnet --validator --telemetry-url ws://telemetry-backend.kilt-prototype.tk:1024 "$@"

2 changes: 1 addition & 1 deletion scripts/kilt-node-testnet.sh → kilt-node-testnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ MASTER_BOOT_NODE_IPFS=`./lookup-master-bootnode-testnet.sh`

# Connect to master boot node
echo "Master boot node: $MASTER_BOOT_NODE_IPFS..."
./../target/debug/node --chain kilt-testnet --bootnodes $MASTER_BOOT_NODE_IPFS --port 30333 --validator --telemetry-url ws://telemetry-backend.kilt-prototype.tk:1024 "$@"
./target/debug/node --chain kilt-testnet --bootnodes $MASTER_BOOT_NODE_IPFS --port 30333 --validator --telemetry-url ws://telemetry-backend.kilt-prototype.tk:1024 "$@"