Skip to content

Commit

Permalink
feat: add electrs v0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vafanassieff committed Dec 13, 2023
1 parent 1566705 commit 91e4ef9
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/electrs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: electrs

on:
workflow_dispatch:
inputs:
force:
type: boolean
description: Force build
required: false
default: false
push:
branches:
- master
paths:
- docker/electrs/**
- .github/workflows/electrs.yml

jobs:
build:
permissions:
contents: read
packages: write
uses: ./.github/workflows/bake.yml
secrets: inherit
with:
path: docker/electrs
target: release
29 changes: 29 additions & 0 deletions docker/electrs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ARG VERSION

FROM rust:bookworm AS build

WORKDIR /app

ENV ROCKSDB_INCLUDE_DIR=/usr/include
ENV ROCKSDB_LIB_DIR=/usr/lib

RUN apt update -qqy && \
apt install -qqy librocksdb-dev curl clang cmake git

RUN git clone https://github.com/romanz/electrs.git && \
cd electrs && \
git checkout $VERSION && \
cargo build --release

FROM lnmarkets/debian:bookworm

COPY --from=build /app/electrs/target/release/electrs /usr/bin/electrs

RUN apt update -qqy && \
apt install -qqy librocksdb-dev

EXPOSE 50001 4224

ENTRYPOINT [ "/docker/entrypoint.sh", "electrs"]

CMD ["--help"]
3 changes: 3 additions & 0 deletions docker/electrs/image.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VERSION="v0.10.1"
NAME="electrs"
DESCRIPTION="An efficient re-implementation of Electrum Server in Rust"

0 comments on commit 91e4ef9

Please sign in to comment.