bumping version and allowing compile vs fetch build opts

pull/2/head
lza_menace 4 years ago
parent 49f3de1ac1
commit acb2c038ac

@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y \
build-essential cmake pkg-config libboost-all-dev \ build-essential cmake pkg-config libboost-all-dev \
libssl-dev libzmq3-dev libunbound-dev libsodium-dev libpgm-dev git 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 RUN make -j2

@ -1,16 +1,24 @@
#!/bin/bash #!/bin/bash
set -ex set -e
TAG="${1}" TAG="${1}"
BASE=$(echo ${TAG} | cut -d":" -f1) BASE=$(echo ${TAG} | cut -d":" -f1)
FULL="${2}"
if [[ -z "${TAG}" ]]; then if [[ -z "${TAG}" ]]; then
echo "You must specify a container tag. ex: lalanza808/wownero:v0.9.2.1" echo "You must specify a container tag. ex: lalanza808/wownero:v0.9.2.1"
exit 1 exit 1
fi fi
if [[ -z "${FULL}" ]]
then
echo -e "[+] Building container by fetching binaries"
docker build -t "${TAG}" -f dockerfiles/wownerod_nocompile . 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" docker tag "${TAG}" "${BASE}:latest"

Loading…
Cancel
Save