Created
October 23, 2018 10:20
-
-
Save imylomylo/0a5936e88ed8bbf6220005f3e39e37fc to your computer and use it in GitHub Desktop.
Docker komodo from emmanuel dragon riders
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Discord #developer channel | |
FROM ubuntu:16.04 | |
ENV BUILD_PACKAGES="build-essential pkg-config libcurl3-gnutls-dev libc6-dev libevent-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev curl wget bsdmainutils automake libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libqt4-dev libqrencode-dev libdb++-dev" | |
RUN apt update && \ | |
apt install -y $BUILD_PACKAGES | |
COPY fetch-params.sh . | |
RUN ./fetch-params.sh | |
LABEL komodo_version="0.0629a" | |
RUN git clone https://github.com/jl777/komodo | |
COPY *.tar.* /komodo/depends/sources/ | |
RUN cd komodo && \ | |
git checkout beta && \ | |
./zcutil/fetch-params.sh && \ | |
./zcutil/build.sh -j$(nproc) | |
RUN apt remove --purge -y $BUILD_PACKAGES $(apt-mark showauto) && \ | |
rm -rf /var/lib/apt/lists/* && \ | |
rm -rf /komodo/depends | |
RUN apt update && apt install -y libcurl3-gnutls-dev libgomp1 telnet curl | |
RUN useradd -u 3003 -m komodo && \ | |
mv /root/.zcash-params /home/komodo/ | |
ENV PATH="/komodo/src/:${PATH}" | |
COPY entrypoint.sh / | |
ENTRYPOINT ["/entrypoint.sh"] | |
entrypoint.sh | |
#/bin/bash | |
#!/bin/bash | |
mkdir /home/komodo/.komodo | |
touch /home/komodo/.komodo/komodo.conf | |
chown -R komodo:komodo /home/komodo/.* | |
arguments="$(echo $@ | tr '\n' ' ')" | |
su - komodo -c "/komodo/src/komodod $arguments" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment