-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1566705
commit 91e4ef9
Showing
3 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |