Browse Source

Don't duplicate data dir

pull/2/head
Luke Childs 7 years ago
parent
commit
51d9c5fdb2
  1. 1
      Dockerfile
  2. 5
      bin/init

1
Dockerfile

@ -18,6 +18,7 @@ RUN VERSION=`cat /tmp/VERSION` && \
VOLUME ["/data"] VOLUME ["/data"]
ENV HOME /data ENV HOME /data
ENV DATA /data
WORKDIR /data WORKDIR /data
EXPOSE 8332 8333 EXPOSE 8332 8333

5
bin/init

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
DATA_DIR=/data CONF=${DATA}/vertcoin.conf
CONF=${DATA_DIR}/vertcoin.conf
if [ ! -e "${CONF}" ]; then if [ ! -e "${CONF}" ]; then
echo "disablewallet=1 echo "disablewallet=1
@ -12,4 +11,4 @@ rpcuser=rpc
rpcpassword=`dd if=/dev/urandom bs=18 count=1 2>/dev/null | base64`" > "${CONF}" rpcpassword=`dd if=/dev/urandom bs=18 count=1 2>/dev/null | base64`" > "${CONF}"
fi fi
exec vertcoind -datadir=${DATA_DIR} -conf=${CONF} "$@" exec vertcoind -datadir=${DATA} -conf=${CONF} "$@"

Loading…
Cancel
Save