break out compose and docker files for compile vs no-compile options
This commit is contained in:
29
dockerfiles/monero_compile
Normal file
29
dockerfiles/monero_compile
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM ubuntu:19.10 as og
|
||||
|
||||
ARG threads
|
||||
|
||||
WORKDIR /opt/monero
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential cmake pkg-config libboost-all-dev \
|
||||
libssl-dev libzmq3-dev libunbound-dev libsodium-dev libpgm-dev git
|
||||
|
||||
RUN git clone https://github.com/monero-project/monero --branch=v0.17.0.1 --depth=1 .
|
||||
|
||||
RUN git submodule update --init --force
|
||||
|
||||
RUN make -j$threads
|
||||
|
||||
FROM ubuntu:19.10
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
COPY --from=og /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/
|
||||
COPY --from=og /opt/monero/build/Linux/_no_branch_/release/bin/monerod /bin/monerod
|
||||
COPY --from=og /opt/monero/build/Linux/_no_branch_/release/bin/monero-wallet-cli /bin/monero-wallet-cli
|
||||
COPY --from=og /opt/monero/build/Linux/_no_branch_/release/bin/monero-wallet-rpc /bin/monero-wallet-rpc
|
||||
|
||||
EXPOSE 18080
|
||||
EXPOSE 18081
|
||||
EXPOSE 18082
|
||||
EXPOSE 18083
|
||||
39
dockerfiles/monero_nocompile
Normal file
39
dockerfiles/monero_nocompile
Normal file
@@ -0,0 +1,39 @@
|
||||
FROM ubuntu:19.10
|
||||
|
||||
ENV MONERO_HASH 2335716555ff0428da0f206a491d9c57b7ae2221d1cfbbb3bf43960d3a2a4dfe
|
||||
ENV MONERO_DL_URL https://github.com/monero-project/monero/releases/download/v0.17.0.1/monero-linux-x64-v0.17.0.1.tar.bz2
|
||||
ENV MONERO_DL_FILE monero.tar.bz2
|
||||
ENV MONERO_SUMS_FILE sha256sums
|
||||
|
||||
WORKDIR /opt/monero
|
||||
|
||||
# Update system and install dependencies
|
||||
# Download Monero binaries from Github
|
||||
# Confirm hashes match
|
||||
# Install daemon binary
|
||||
# Clean up
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get upgrade -y \
|
||||
&& apt-get install -y tar wget \
|
||||
&& wget -qO ${MONERO_DL_FILE} ${MONERO_DL_URL} \
|
||||
&& echo "${MONERO_HASH} ${MONERO_DL_FILE}" > ${MONERO_SUMS_FILE} \
|
||||
&& sha256sum -c ${MONERO_SUMS_FILE}; \
|
||||
if [ "$?" -eq 0 ]; \
|
||||
then \
|
||||
echo -e "[+] Hashes match - proceeding with container build"; \
|
||||
else \
|
||||
echo -e "[!] Hashes do not match - exiting"; \
|
||||
exit 5; \
|
||||
fi \
|
||||
&& mkdir ./tmp \
|
||||
&& tar xjf ${MONERO_DL_FILE} -C ./tmp --strip 1 \
|
||||
&& mv ./tmp/* /usr/local/bin/ \
|
||||
&& rm -rf ./tmp ${MONERO_SUMS_FILE} ${MONERO_DL_FILE}
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
EXPOSE 18080
|
||||
EXPOSE 18081
|
||||
EXPOSE 18082
|
||||
EXPOSE 18083
|
||||
11
dockerfiles/monerod_exporter
Normal file
11
dockerfiles/monerod_exporter
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM node:8
|
||||
|
||||
WORKDIR /opt/monerod_exporter
|
||||
|
||||
RUN git clone https://github.com/ExcitableAardvark/monerod_exporter.git --branch=master --depth=1 .
|
||||
|
||||
RUN npm install
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["node", "index.js"]
|
||||
Reference in New Issue
Block a user