forked from MoneyBagCoin/MoneyBagCoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·33 lines (27 loc) · 1.29 KB
/
Copy pathDockerfile
File metadata and controls
executable file
·33 lines (27 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
################################## Notes ##################################
# build:
# docker build --no-cache -t moneybagcoin .
#
# run:
# docker run -it -p 15015:15015 moneybagcoin
#
# run with a mounted directory for ~/.MoneyBagCoin:
# docker run -it -p 15015:15015 -v /path/to/a/local/directory:/root/.MoneyBagCoin moneybagcoin
#
# run will exec you into docker /bin/bash
# from there, you can run:
# moneybagcoind # starts the moneybagcoin deamon
#
# For accessing the moneybagcoin JSON-RPC api from the host:
# 1. Expose RPC port in when running docker
# docker run -it -p 15015:15015 -p 5000:XXX -v /path/to/a/local/directory:/root/.MoneyBagCoin moneybagcoin # Replace XXX with set rpcPort in moneybagcoin.conf
# 2. From host access the API via:
# `curl --user rpc_user:rpc_pass --data '{"method": "getinfo"}' http://127.0.0.1:5000`
#############################################################################
FROM ubuntu:16.04
# Build essentials
RUN apt-get install git build-essential libboost1.58-all-dev libssl-dev libdb5.3++-dev libminiupnpc-dev
RUN apt-get clean
RUN git clone https://github.com/MoneyBagCoin/MoneyBagCoin.git MoneyBagCoin && cd MoneyBagCoin/src/ && make -f makefile.unix && cp moneybagcoind /usr/local/sbin/moneybagcoind
RUN mkdir /root/.MoneyBagCoin/
CMD ["/bin/bash"]