mirror of
https://git.wownero.com/lza_menace/docker-wownero.git
synced 2024-08-15 01:03:31 +00:00
bumping version and allowing compile vs fetch build opts
This commit is contained in:
parent
49f3de1ac1
commit
acb2c038ac
2 changed files with 11 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue