Skip to content

Commit

Permalink
Bump Monero to v0.17.2.3 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Simmons authored Sep 15, 2021
1 parent 329b42b commit 96ad18b
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Monero/0.17.2.3/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git
README.md
53 changes: 53 additions & 0 deletions Monero/0.17.2.3/linuxamd64.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# runtime stage
FROM debian:stretch-slim

# Set necessary environment variables
ENV FILE=monero-linux-x64-v0.17.2.3.tar.bz2
ENV FILE_CHECKSUM=8069012ad5e7b35f79e35e6ca71c2424efc54b61f6f93238b182981ba83f2311

# Set SHELL options per https://github.com/hadolint/hadolint/wiki/DL4006
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Install dependencies
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get -y --no-install-recommends install bzip2 ca-certificates wget curl \
&& apt-get -y autoremove \
&& apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/*

# Download specified Monero tar.gz and verify downloaded binary against hardcoded checksum
RUN wget -qO $FILE https://downloads.getmonero.org/cli/$FILE && \
echo "$FILE_CHECKSUM $FILE" | sha256sum -c -

# Extract and set permissions on Monero binaries
RUN mkdir -p extracted && \
tar -jxvf $FILE -C /extracted && \
find /extracted/ -type f -print0 | xargs -0 chmod a+x && \
find /extracted/ -type f -print0 | xargs -0 mv -t /usr/local/bin/ && \
rm -rf extracted && rm $FILE

# Copy notifier script
COPY ./scripts /scripts/
RUN find /scripts/ -type f -print0 | xargs -0 chmod a+x

# Create monero user
RUN adduser --system --group --disabled-password monero && \
mkdir -p /wallet /home/monero/.bitmonero && \
chown -R monero:monero /home/monero/.bitmonero && \
chown -R monero:monero /wallet

# Specify necessary volumes
VOLUME /home/monero/.bitmonero
VOLUME /wallet

# Expose p2p, RPC, and ZMQ ports
EXPOSE 18080
EXPOSE 18081
EXPOSE 18082

# Switch to user monero
USER monero

# Add HEALTHCHECK against get_info endpoint
HEALTHCHECK --interval=5s --timeout=3s CMD curl --fail http://localhost:18081/get_info || exit 1
1 change: 1 addition & 0 deletions Monero/0.17.2.3/scripts/notifier.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
curl $@

0 comments on commit 96ad18b

Please sign in to comment.