mirror of
https://github.com/Retropex/dockerfile-deps.git
synced 2025-05-12 00:20:42 +02:00
Bump Monero to v0.18.3.4 (#105)
This commit is contained in:
parent
121a5be1bf
commit
4ce51ae817
52
Monero/0.18.3.4/linuxamd64.Dockerfile
Normal file
52
Monero/0.18.3.4/linuxamd64.Dockerfile
Normal file
@ -0,0 +1,52 @@
|
||||
# Set base image
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
# Set necessary environment variables for the current Monero version and hash
|
||||
ENV FILE=monero-linux-x64-v0.18.3.4.tar.bz2
|
||||
ENV FILE_CHECKSUM=51ba03928d189c1c11b5379cab17dd9ae8d2230056dc05c872d0f8dba4a87f1d
|
||||
|
||||
# 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 /home/monero && \
|
||||
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
|
||||
ENV HOME /home/monero
|
52
Monero/0.18.3.4/linuxarm32v7.Dockerfile
Normal file
52
Monero/0.18.3.4/linuxarm32v7.Dockerfile
Normal file
@ -0,0 +1,52 @@
|
||||
# Explicitly specify arm32v7 base image
|
||||
FROM arm32v7/debian:bullseye-slim
|
||||
#EnableQEMU COPY qemu-arm-static /usr/bin
|
||||
# Set necessary environment variables for the current Monero version and hash
|
||||
ENV FILE=monero-linux-armv7-v0.18.3.4.tar.bz2
|
||||
ENV FILE_CHECKSUM=354603c56446fb0551cdd6933bce5a13590b7881e05979b7ec25d89e7e59a0e2
|
||||
|
||||
# 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 /home/monero && \
|
||||
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
|
||||
ENV HOME /home/monero
|
51
Monero/0.18.3.4/linuxarm64v8.Dockerfile
Normal file
51
Monero/0.18.3.4/linuxarm64v8.Dockerfile
Normal file
@ -0,0 +1,51 @@
|
||||
# Explicitly specify arm64v8 base image
|
||||
FROM arm64v8/debian:bullseye-slim
|
||||
#EnableQEMU COPY qemu-aarch64-static /usr/bin
|
||||
# Set necessary environment variables for the current Monero version and hash
|
||||
ENV FILE=monero-linux-armv8-v0.18.3.4.tar.bz2
|
||||
ENV FILE_CHECKSUM=33ca2f0055529d225b61314c56370e35606b40edad61c91c859f873ed67a1ea7
|
||||
|
||||
# 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 /home/monero && \
|
||||
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
|
||||
ENV HOME /home/monero
|
1
Monero/0.18.3.4/scripts/notifier.sh
Executable file
1
Monero/0.18.3.4/scripts/notifier.sh
Executable file
@ -0,0 +1 @@
|
||||
curl $@
|
Loading…
Reference in New Issue
Block a user