From acb2c038ac1f30e6013cca2518585468a8e84c07 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Wed, 14 Apr 2021 10:38:21 -0700 Subject: [PATCH] bumping version and allowing compile vs fetch build opts --- wownero/Dockerfile | 2 +- wownero/release.sh | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/wownero/Dockerfile b/wownero/Dockerfile index 90d3dbf..157b1f6 100644 --- a/wownero/Dockerfile +++ b/wownero/Dockerfile @@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y \ build-essential cmake pkg-config libboost-all-dev \ libssl-dev libzmq3-dev libunbound-dev libsodium-dev libpgm-dev git -RUN git clone https://git.wownero.com/wownero/wownero --depth=1 --branch=v0.9.2.1 . +RUN git clone https://git.wownero.com/wownero/wownero --depth=1 --branch=v0.9.3.1 . RUN make -j2 diff --git a/wownero/release.sh b/wownero/release.sh index 3f6f992..c2c8205 100755 --- a/wownero/release.sh +++ b/wownero/release.sh @@ -1,16 +1,24 @@ #!/bin/bash -set -ex +set -e TAG="${1}" BASE=$(echo ${TAG} | cut -d":" -f1) +FULL="${2}" if [[ -z "${TAG}" ]]; then echo "You must specify a container tag. ex: lalanza808/wownero:v0.9.2.1" exit 1 fi -docker build -t "${TAG}" -f dockerfiles/wownerod_nocompile . +if [[ -z "${FULL}" ]] +then + echo -e "[+] Building container by fetching binaries" + docker build -t "${TAG}" -f dockerfiles/wownerod_nocompile . +else + echo -e "[+] Building container by compiling binaries" + docker build -t "${TAG}" . +fi docker tag "${TAG}" "${BASE}:latest"