Browse Source

Initial commit

alpine
Luke Childs 7 years ago
commit
b270d2fdb0
  1. 19
      Dockerfile
  2. 21
      LICENSE
  3. 16
      README.md
  4. 16
      bin/init

19
Dockerfile

@ -0,0 +1,19 @@
FROM ubuntu:16.04
MAINTAINER Luke Childs <lukechilds123@gmail.com>
RUN apt-get update
RUN apt-get install -y curl unzip
RUN curl -L https://github.com/vertcoin/vertcoin/releases/download/v0.11.1.0/vertcoin-v0.11.1.0-linux-64bit.zip --output prebuilt.zip
RUN unzip prebuilt.zip
RUN mv vertcoind /usr/local/bin
ADD ./bin /usr/local/bin
RUN chmod a+x /usr/local/bin/*
VOLUME ["/data"]
ENV HOME /data
WORKDIR /data
EXPOSE 8332 8333
ENTRYPOINT ["init"]

21
LICENSE

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2017 Luke Childs
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

16
README.md

@ -0,0 +1,16 @@
# docker-vertcoind
[![Docker Stars](https://img.shields.io/docker/stars/lukechilds/vertcoind.svg)](https://hub.docker.com/r/lukechilds/vertcoind/)
[![Docker Pulls](https://img.shields.io/docker/pulls/lukechilds/vertcoind.svg)](https://hub.docker.com/r/lukechilds/vertcoind/)
> Run a full Vertcoin node with one command
A Docker configuration with sane defaults for running a full
Vertcoin node.
## Usage
```
docker run -v /home/username/vertcoin:/data -p 8333:8333 lukechilds/vertcoind
```

16
bin/init

@ -0,0 +1,16 @@
#!/bin/bash
DATA_DIR=/data
CONF=${DATA_DIR}/vertcoin.conf
if [ ! -e "${CONF}" ]; then
echo "No vertcoin.conf found, creating one for you."
echo "disablewallet=1
printtoconsole=1
rpcport=8332
rpcallowip=::/0
rpcuser=rpc
rpcpassword=`dd if=/dev/urandom bs=18 count=1 2>/dev/null | base64`" > "${CONF}"
fi
exec vertcoind -datadir=${DATA_DIR} -conf=${CONF}
Loading…
Cancel
Save