added electrs podman build
This commit is contained in:
parent
a7154389fc
commit
f4d4ac5963
6
podman/bitcoin/build.sh
Executable file
6
podman/bitcoin/build.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
#Build command to make container
|
||||||
|
VER=26.0
|
||||||
|
|
||||||
|
buildah build -t bitcoin:$VER --build-arg VERSION=$VER -f Containerfile
|
||||||
42
podman/electrs/Containerfile
Normal file
42
podman/electrs/Containerfile
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
#Adapted from iangregsondev - https://github.com/iangregsondev/electrs-docker/blob/main/Dockerfile
|
||||||
|
|
||||||
|
#FROM rust:1.44.1-slim-buster AS builder
|
||||||
|
|
||||||
|
FROM almalinux/9-base as builder
|
||||||
|
|
||||||
|
ARG VERSION=v0.10.2
|
||||||
|
ENV REPO=https://github.com/romanz/electrs.git
|
||||||
|
|
||||||
|
WORKDIR /build
|
||||||
|
|
||||||
|
RUN dnf update -y && dnf install -y dnf-plugins-core && dnf config-manager --set-enabled crb && dnf update -y \
|
||||||
|
&& dnf install -y git cargo clang cmake snappy-devel
|
||||||
|
|
||||||
|
RUN git clone --branch $VERSION $REPO .
|
||||||
|
|
||||||
|
RUN cargo build --release --bin electrs
|
||||||
|
|
||||||
|
|
||||||
|
#FROM debian:buster-slim
|
||||||
|
|
||||||
|
FROM almalinux/9-minimal
|
||||||
|
|
||||||
|
RUN microdnf update -y && microdnf clean all
|
||||||
|
|
||||||
|
COPY --from=builder /build/target/release/electrs /bin/electrs
|
||||||
|
|
||||||
|
# Electrum RPC Mainnet
|
||||||
|
EXPOSE 50001
|
||||||
|
# Electrum RPC Testnet
|
||||||
|
EXPOSE 60001
|
||||||
|
# Electrum RPC Regtest
|
||||||
|
EXPOSE 60401
|
||||||
|
|
||||||
|
# Prometheus monitoring
|
||||||
|
EXPOSE 4224
|
||||||
|
|
||||||
|
STOPSIGNAL SIGINT
|
||||||
|
|
||||||
|
HEALTHCHECK CMD curl -fSs http://localhost:4224/ || exit 1
|
||||||
|
|
||||||
|
ENTRYPOINT [ "electrs" ]
|
||||||
6
podman/electrs/build.sh
Executable file
6
podman/electrs/build.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
#Build command to make container
|
||||||
|
VER=0.10.2
|
||||||
|
|
||||||
|
buildah build -t electrs:$VER --build-arg VERSION=v$VER -f Containerfile
|
||||||
Loading…
x
Reference in New Issue
Block a user