fix docker build

This commit is contained in:
Denis S. Soldatov aka General-Beck 2017-07-18 16:12:16 +03:00
parent 649552e0f0
commit df144a6fcb
3 changed files with 6 additions and 5 deletions

View File

@ -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 && \

@ -1 +1 @@
Subproject commit 4e8b9be3fba16ec32e0cdf50b8f9329826283aaa
Subproject commit ef191fdc61cf76cdb9cdc147465fb447304b0ed2

7
scripts/docker-build.sh Normal file → Executable file
View File

@ -1,6 +1,7 @@
#!/bin/bash
cd docker/hub
if [ "$1" == "latest" ]; then DOCKER_BUILD_TAG="beta-release"; fi
DOCKER_BUILD_TAG=$1
echo "Docker build tag: " $DOCKER_BUILD_TAG
docker build --build-arg BUILD_TAG=$DOCKER_BUILD_TAG --no-cache=true --tag $2/parity:$1 .
docker push $2/parity:$1
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