From f5a8c73be5b7bee810ea16ed5a3b07ee21ed429b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Fri, 12 Aug 2016 09:18:42 +0200 Subject: [PATCH] Adding entrypoints to docker images (#1909) --- docker/centos/Dockerfile | 6 +++++- docker/ubuntu-aarch64/Dockerfile | 4 ++++ docker/ubuntu-arm/Dockerfile | 4 ++++ docker/ubuntu-jit/Dockerfile | 4 ++++ docker/ubuntu/Dockerfile | 5 ++++- 5 files changed, 21 insertions(+), 2 deletions(-) diff --git a/docker/centos/Dockerfile b/docker/centos/Dockerfile index 9fd33f4ff..bb1d46054 100644 --- a/docker/centos/Dockerfile +++ b/docker/centos/Dockerfile @@ -5,7 +5,7 @@ RUN yum -y update&& \ yum install -y git make gcc-c++ gcc file binutils # install rustup RUN curl -sSf https://static.rust-lang.org/rustup.sh -o rustup.sh &&\ -ls&&\ +ls&&\ sh rustup.sh -s -- --disable-sudo # show backtraces ENV RUST_BACKTRACE 1 @@ -26,4 +26,8 @@ RUN git clone https://github.com/ethcore/parity && \ cargo build --release --verbose && \ ls /build/parity/target/release/parity && \ strip /build/parity/target/release/parity + RUN file /build/parity/target/release/parity + +EXPOSE 8080 8545 8180 +ENTRYPOINT ["/build/parity/target/release/parity"] diff --git a/docker/ubuntu-aarch64/Dockerfile b/docker/ubuntu-aarch64/Dockerfile index 38ed4c9b1..aae09f71c 100644 --- a/docker/ubuntu-aarch64/Dockerfile +++ b/docker/ubuntu-aarch64/Dockerfile @@ -46,4 +46,8 @@ RUN git clone https://github.com/ethcore/parity && \ cargo build --target aarch64-unknown-linux-gnu --release --verbose && \ ls /build/parity/target/aarch64-unknown-linux-gnu/release/parity && \ /usr/bin/aarch64-linux-gnu-strip /build/parity/target/aarch64-unknown-linux-gnu/release/parity + RUN file /build/parity/target/aarch64-unknown-linux-gnu/release/parity + +EXPOSE 8080 8545 8180 +ENTRYPOINT ["/build/parity/target/aarch64-unknown-linux-gnu/release/parity"] diff --git a/docker/ubuntu-arm/Dockerfile b/docker/ubuntu-arm/Dockerfile index b59573a0f..54a54ad55 100644 --- a/docker/ubuntu-arm/Dockerfile +++ b/docker/ubuntu-arm/Dockerfile @@ -46,4 +46,8 @@ RUN git clone https://github.com/ethcore/parity && \ cargo build --target armv7-unknown-linux-gnueabihf --release --verbose && \ ls /build/parity/target/armv7-unknown-linux-gnueabihf/release/parity && \ /usr/bin/arm-linux-gnueabihf-strip /build/parity/target/armv7-unknown-linux-gnueabihf/release/parity + RUN file /build/parity/target/armv7-unknown-linux-gnueabihf/release/parity + +EXPOSE 8080 8545 8180 +ENTRYPOINT ["/build/parity/target/armv7-unknown-linux-gnueabihf/release/parity"] diff --git a/docker/ubuntu-jit/Dockerfile b/docker/ubuntu-jit/Dockerfile index 666b16904..99892e878 100644 --- a/docker/ubuntu-jit/Dockerfile +++ b/docker/ubuntu-jit/Dockerfile @@ -52,4 +52,8 @@ RUN git clone https://github.com/ethcore/parity && \ cargo build --release --features ethcore/jit --verbose && \ ls /build/parity/target/release/parity && \ strip /build/parity/target/release/parity + RUN file /build/parity/target/release/parity + +EXPOSE 8080 8545 8180 +ENTRYPOINT ["/build/parity/target/release/parity"] diff --git a/docker/ubuntu/Dockerfile b/docker/ubuntu/Dockerfile index 93888a48c..0c8e7d5db 100644 --- a/docker/ubuntu/Dockerfile +++ b/docker/ubuntu/Dockerfile @@ -32,5 +32,8 @@ RUN git clone https://github.com/ethcore/parity && \ cargo build --release --verbose && \ ls /build/parity/target/release/parity && \ strip /build/parity/target/release/parity - + +RUN file /build/parity/target/release/parity + +EXPOSE 8080 8545 8180 ENTRYPOINT ["/build/parity/target/release/parity"]