From 96e60d9c91eb21ef84b7cbda461b2436c5459040 Mon Sep 17 00:00:00 2001 From: "Denis S. Soldatov aka General-Beck" Date: Tue, 18 Jul 2017 16:13:19 +0300 Subject: [PATCH] fix docker build in beta --- .gitlab-ci.yml | 3 ++- docker/hub/Dockerfile | 4 ++-- ethcore/res/ethereum/tests | 2 +- scripts/docker-build.sh | 8 +++++--- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a341b4fa5..772983158 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -77,7 +77,7 @@ linux-snap: - echo "Version:"$VER - snapcraft - ls - #- cp "parity_"$CI_BUILD"_REF_NAME_amd64.snap" "parity_"$VER"_amd64.snap" + - cp "parity_"$CI_BUILD"_REF_NAME_amd64.snap" "parity_"$VER"_amd64.snap" - md5sum "parity_"$VER"_amd64.snap" > "parity_"$VER"_amd64.snap.md5" - aws configure set aws_access_key_id $s3_key - aws configure set aws_secret_access_key $s3_secret @@ -561,6 +561,7 @@ docker-build: - docker info script: - if [ "$CI_BUILD_REF_NAME" == "beta-release" ]; then DOCKER_TAG="latest"; else DOCKER_TAG=$CI_BUILD_REF_NAME; fi + - echo "Tag:" $DOCKER_TAG - docker login -u $Docker_Hub_User_Parity -p $Docker_Hub_Pass_Parity - sh scripts/docker-build.sh $DOCKER_TAG parity - docker logout diff --git a/docker/hub/Dockerfile b/docker/hub/Dockerfile index 3120eeba7..c3406a5bd 100644 --- a/docker/hub/Dockerfile +++ b/docker/hub/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /build #ENV for build TAG ARG BUILD_TAG ENV BUILD_TAG ${BUILD_TAG:-master} -RUN echo $BUILD_TAG +RUN echo "Build tag:" $BUILD_TAG # install tools and dependencies RUN apt-get update && \ apt-get install -y --force-yes --no-install-recommends \ @@ -48,7 +48,7 @@ RUN apt-get update && \ # show backtraces RUST_BACKTRACE=1 && \ # build parity - cd /build&&git clone https://github.com/paritytech/parity && \ +cd /build&&git clone https://github.com/paritytech/parity && \ cd parity && \ git pull&& \ git checkout $BUILD_TAG && \ diff --git a/ethcore/res/ethereum/tests b/ethcore/res/ethereum/tests index 4e8b9be3f..ef191fdc6 160000 --- a/ethcore/res/ethereum/tests +++ b/ethcore/res/ethereum/tests @@ -1 +1 @@ -Subproject commit 4e8b9be3fba16ec32e0cdf50b8f9329826283aaa +Subproject commit ef191fdc61cf76cdb9cdc147465fb447304b0ed2 diff --git a/scripts/docker-build.sh b/scripts/docker-build.sh index c83912080..92d35432b 100644 --- a/scripts/docker-build.sh +++ b/scripts/docker-build.sh @@ -1,5 +1,7 @@ #!/bin/bash cd docker/hub -if [ "$1" == "latest" ]; then DOCKER_BUILD_TAG="beta-release"; fi -docker build --build-arg BUILD_TAG=$DOCKER_BUILD_TAG --no-cache=true --tag $2/parity:$1 . -docker push $2/parity:$1 +DOCKER_BUILD_TAG=$1 +echo "Docker build tag: " $DOCKER_BUILD_TAG +docker build --build-arg BUILD_TAG=$DOCKER_BUILD_TAG --no-cache=true --tag parity/parity:$DOCKER_BUILD_TAG . +docker run -it parity/parity:$DOCKER_BUILD_TAG -v +#docker push parity/parity:$DOCKER_BUILD_TAG