bumping version and allowing compile vs fetch build opts

This commit is contained in:
lza_menace 2021-04-14 10:38:21 -07:00
parent 49f3de1ac1
commit acb2c038ac
2 changed files with 11 additions and 3 deletions

View file

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

View file

@ -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"