mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-25 17:02:26 +00:00
Added basic docker file
finalized dockerfile
This commit is contained in:
parent
c3ba844f03
commit
93972546c0
2 changed files with 61 additions and 2 deletions
49
Dockerfile
Normal file
49
Dockerfile
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
FROM debian:testing
|
||||||
|
MAINTAINER eiabea <developer@eiabea.com>
|
||||||
|
|
||||||
|
# Install clone dependencies
|
||||||
|
RUN set -e && \
|
||||||
|
apt-get update -q && \
|
||||||
|
apt-get install -q -y --no-install-recommends ca-certificates git && \
|
||||||
|
git clone https://github.com/monero-project/bitmonero.git src && \
|
||||||
|
apt-get purge -y git && \
|
||||||
|
apt-get clean -q -y && \
|
||||||
|
apt-get autoclean -q -y && \
|
||||||
|
apt-get autoremove -q -y
|
||||||
|
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
# Install make dependencies
|
||||||
|
RUN set -e && \
|
||||||
|
apt-get update -q && \
|
||||||
|
apt-get install -q -y --no-install-recommends build-essential ca-certificates g++ gcc cmake \
|
||||||
|
pkg-config libunbound2 libevent-2.0-5 libgtest-dev libboost-all-dev libdb5.3++-dev libdb5.3-dev libssl-dev && \
|
||||||
|
make -j 4 && \
|
||||||
|
apt-get purge -y g++ gcc cmake pkg-config && \
|
||||||
|
apt-get clean -q -y && \
|
||||||
|
apt-get autoclean -q -y && \
|
||||||
|
apt-get autoremove -q -y && \
|
||||||
|
mkdir /bitmonero && \
|
||||||
|
mv /src/build/release/bin/* /bitmonero && \
|
||||||
|
rm -rf /src
|
||||||
|
|
||||||
|
WORKDIR /bitmonero
|
||||||
|
|
||||||
|
# Contains the blockchain
|
||||||
|
VOLUME /root/.bitmonero
|
||||||
|
|
||||||
|
# Generate your wallet via accessing the container and run:
|
||||||
|
# cd /wallet
|
||||||
|
# /./bitmonero/simplewallet
|
||||||
|
VOLUME /wallet
|
||||||
|
|
||||||
|
ENV LOG_LEVEL 0
|
||||||
|
ENV P2P_BIND_IP 0.0.0.0
|
||||||
|
ENV P2P_BIND_PORT 18080
|
||||||
|
ENV RPC_BIND_IP 127.0.0.1
|
||||||
|
ENV RPC_BIND_PORT 18081
|
||||||
|
|
||||||
|
EXPOSE 18080
|
||||||
|
EXPOSE 18081
|
||||||
|
|
||||||
|
CMD ./bitmonerod --log-level=$LOG_LEVEL --p2p-bind-ip=$P2P_BIND_IP --p2p-bind-port=$P2P_BIND_PORT --rpc-bind-ip=$RPC_BIND_IP --rpc-bind-port=$RPC_BIND_PORT
|
10
README.md
10
README.md
|
@ -68,6 +68,16 @@ Packages are available for
|
||||||
brew tap sammy007/cryptonight
|
brew tap sammy007/cryptonight
|
||||||
brew install bitmonero --build-from-source
|
brew install bitmonero --build-from-source
|
||||||
|
|
||||||
|
* Docker
|
||||||
|
|
||||||
|
docker build -t monero .
|
||||||
|
|
||||||
|
# either run in foreground
|
||||||
|
docker run -it -v /bitmonero/chain:/root/.bitmonero -v /bitmonero/wallet:/wallet -p 18080:18080 monero
|
||||||
|
|
||||||
|
# or in background
|
||||||
|
docker run -it -d -v /bitmonero/chain:/root/.bitmonero -v /bitmonero/wallet:/wallet -p 18080:18080 monero
|
||||||
|
|
||||||
Packaging for your favorite distribution would be a welcome contribution!
|
Packaging for your favorite distribution would be a welcome contribution!
|
||||||
|
|
||||||
## Compiling Monero from Source
|
## Compiling Monero from Source
|
||||||
|
|
Loading…
Reference in a new issue