Skip to content

Instantly share code, notes, and snippets.

@teshanshanuka
Created May 28, 2021 04:22
Show Gist options
  • Save teshanshanuka/3471b2916f36f1450861fbbd24f43cce to your computer and use it in GitHub Desktop.
Save teshanshanuka/3471b2916f36f1450861fbbd24f43cce to your computer and use it in GitHub Desktop.
FROM ubuntu:18.04
RUN apt update && apt dist-upgrade -y
RUN apt install -y software-properties-common
RUN add-apt-repository ppa:bitcoin/bitcoin
RUN apt update
RUN apt install -y build-essential gcc make perl dkms git build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libboost-all-dev
RUN apt install -y libdb4.8-dev libdb4.8++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libprotobuf-dev protobuf-compiler openssl1.0 libssl1.0-dev
# Make sure this script is inside the cloned BaiCoin repo
# https://github.com/tharindupr/BaiCoin
ADD BaiCoin/ /root/BaiCoin/
RUN mkdir /root/.baicoin
# baicoin.conf content:
# server=1
# rpcuser=daarabaiya
# rpcpassword=sirnathnaminnaratakna
COPY baicoin.conf /root/.baicoin/
WORKDIR /root/BaiCoin/bin
# Build: $docker build . -t baicoins
# Run: $docker run -i baicoins
# Shell: $docker exec -it <container> /bin/bash
# To mine, goto the shell and run `./baicoind --daemon && ./baicoind setgenerate true $(nproc)`
# Transfer mined coins using `./baicoind sendtoaddress <address>`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment