From ade239b55be4b92837f4d887310910e5b0bb3ca9 Mon Sep 17 00:00:00 2001 From: gabriel Date: Tue, 12 Feb 2019 17:17:26 +0100 Subject: [PATCH 1/2] change docker image based on debian instead of ubuntu due to the changes of the build container --- scripts/docker/hub/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/docker/hub/Dockerfile b/scripts/docker/hub/Dockerfile index e4028595274..2858c1d51cf 100644 --- a/scripts/docker/hub/Dockerfile +++ b/scripts/docker/hub/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:xenial +FROM debian:stretch LABEL MAINTAINER="Parity Technologies devops-team@parity.io" # install tools and dependencies From bdaea8c7f6e59c4930f3aa7f4eadd3d41b7e710a Mon Sep 17 00:00:00 2001 From: gabriel Date: Tue, 12 Feb 2019 17:47:44 +0100 Subject: [PATCH 2/2] add missed WORKDIR --- scripts/docker/hub/Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/docker/hub/Dockerfile b/scripts/docker/hub/Dockerfile index 2858c1d51cf..cd5b948a3b5 100644 --- a/scripts/docker/hub/Dockerfile +++ b/scripts/docker/hub/Dockerfile @@ -1,5 +1,5 @@ FROM debian:stretch -LABEL MAINTAINER="Parity Technologies devops-team@parity.io" +LABEL MAINTAINER="Parity Technologies " # install tools and dependencies RUN apt update && apt install -y --no-install-recommends openssl libudev-dev file curl jq @@ -15,9 +15,11 @@ RUN apt autoremove -y \ RUN groupadd -g 1000 parity \ && useradd -m -u 1000 -g parity -s /bin/sh parity -# add parity to docker image +WORKDIR /home/parity + +# add parity-ethereum to docker image COPY artifacts/x86_64-unknown-linux-gnu/parity /bin/parity -RUN echo "#!/bin/bash \n /bin/parity \$@" > ./entrypoint.sh + COPY scripts/docker/hub/check_sync.sh /check_sync.sh # switch to user parity here @@ -25,5 +27,5 @@ USER parity VOLUME [ "/home/parity/.local/share/io.parity.ethereum" ] EXPOSE 5001 8080 8082 8083 8545 8546 8180 30303/tcp 30303/udp -# setup ENTRYPOINT + ENTRYPOINT ["/bin/parity"]