Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tb1 placeholder #603

Closed
wants to merge 53 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
b080879
feat: begin fedimint cards
Kodylow Nov 16, 2023
f6945d9
feat: add fedmint lightning gateway config option to thunderhub configs
Kodylow Nov 16, 2023
1e2ae26
feat: connect to federation card
Kodylow Nov 17, 2023
bf3e1aa
feat: refactor to gateway context pattern
Kodylow Nov 18, 2023
caf995b
fix: minor run fixes
Kodylow Nov 18, 2023
afb80ee
feat: add nix flake
Kodylow Nov 18, 2023
af8feba
fix: local_data dir for dev
Kodylow Nov 20, 2023
f241ee8
devimint setup scripts
Kodylow Nov 20, 2023
bbd527d
fix: fix gateway password and url assignment from publicRuntimeConfig
Kodylow Nov 23, 2023
1503034
fix: fix peg out command
Kodylow Nov 23, 2023
ea65031
fix: peg in ecash card
Kodylow Nov 24, 2023
8872b23
feat: fedimint 0.2 api updates
Kodylow Nov 28, 2023
3b7ce5d
fix: missing export gatewayApi
Kodylow Nov 28, 2023
fbb2e00
fix: updates
Kodylow Nov 28, 2023
dbd7566
fix: amount or all updates for withdrawAll
Kodylow Nov 28, 2023
4da427c
feat: add fedimints tabs and info
Kodylow Nov 28, 2023
2b6d813
feat: network specific quick actions
Kodylow Nov 30, 2023
375a861
fix: hold
Kodylow Nov 30, 2023
d0d6328
feat: skyler updates
Kodylow Nov 30, 2023
8756338
feat: bump fedimint version for multifederation support
Kodylow Dec 2, 2023
2149c7b
fix: multifederation and leave button
Kodylow Dec 2, 2023
480543d
feat: begin fedimint cards
Kodylow Nov 16, 2023
e69553f
feat: connect to federation card
Kodylow Nov 17, 2023
2609def
feat: refactor to gateway context pattern
Kodylow Nov 18, 2023
ee0e1fe
fix: minor run fixes
Kodylow Nov 18, 2023
d697394
fix: local_data dir for dev
Kodylow Nov 20, 2023
140f09f
devimint setup scripts
Kodylow Nov 20, 2023
c8330cf
fix: fix gateway password and url assignment from publicRuntimeConfig
Kodylow Nov 23, 2023
a19629c
fix: fix peg out command
Kodylow Nov 23, 2023
5b53e64
feat: fedimint 0.2 api updates
Kodylow Nov 28, 2023
cfdf4ae
fix: missing export gatewayApi
Kodylow Nov 28, 2023
70ce4b6
fix: updates
Kodylow Nov 28, 2023
edbb90e
fix: hold
Kodylow Nov 30, 2023
ad437e7
feat: skyler updates
Kodylow Nov 30, 2023
5a4e380
feat: bump fedimint version for multifederation support
Kodylow Dec 2, 2023
7eaa0eb
bump fedimint versioning
Kodylow Dec 5, 2023
abc888a
feat: docker hub publishing updates
Kodylow Dec 8, 2023
90af321
fix: docker workflow releases only
Kodylow Dec 14, 2023
607e9ec
fix: merge marker
Kodylow Dec 14, 2023
13e0f42
fix: network indicator
Kodylow Dec 14, 2023
46e5f01
fix: show total fedimint ecash as sats
Kodylow Dec 14, 2023
db91b63
fix: thunderhub ui with sats only
Kodylow Dec 14, 2023
eb9c73b
feat: docker compose mutinynet setup
Kodylow Dec 21, 2023
75110e5
chore: bump flake nix channel and fedimint version
Kodylow Jan 7, 2024
31046a7
updates
Kodylow Jan 8, 2024
cade383
Fix docker-compose IP
IroncladDev Jan 8, 2024
93c559f
remove unnecessary diffs
IroncladDev Jan 9, 2024
1bb3a06
Merge pull request #17 from IroncladDev/co/fix-compose-ip
Kodylow Jan 9, 2024
8bb29cc
Mutinynet Quick Actions
IroncladDev Jan 9, 2024
807448c
Merge pull request #18 from IroncladDev/co/mutinynet-actions
Kodylow Jan 9, 2024
a3ed8e4
fix
Kodylow Jan 19, 2024
66913a3
Merge pull request #25 from Kodylow/fix-purple-fedimint-logo
Kodylow Jan 19, 2024
7297e93
fix: tb1 placeholder
Kodylow Jan 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
57 changes: 57 additions & 0 deletions .github/workflows/fedimint-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: fedimint-thunderhub

on:
push:
tags: ['v*']

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
fedimintui/fedimint-thunderhub
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha

- name: Login to Docker Hub
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@v2
with:
username: fedimintui
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
with:
file: Dockerfile
push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Checkout repository content
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
uses: actions/checkout@v4

# This workflow requires the repository content to be locally available to read the README
- name: Update the Docker Hub description
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
uses: peter-evans/dockerhub-description@v3
with:
username: fedimintui
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
repository: fedimintui/fedimint-thunderhub
readme-filepath: ./README.md
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ ENV BASE_PATH=${BASE_PATH}
ARG NODE_ENV="production"
ENV NODE_ENV=${NODE_ENV}
ENV NEXT_TELEMETRY_DISABLED=1
ARG FM_GATEWAY_API=""
ENV FM_GATEWAY_API=${FM_GATEWAY_API}
ARG FM_GATEWAY_PASSWORD=""
ENV FM_GATEWAY_PASSWORD=${FM_GATEWAY_PASSWORD}

# Build the NestJS and NextJS application
COPY . .
Expand All @@ -51,6 +55,10 @@ ENV BASE_PATH=${BASE_PATH}
ARG NODE_ENV="production"
ENV NODE_ENV=${NODE_ENV}
ENV NEXT_TELEMETRY_DISABLED=1
ARG FM_GATEWAY_API=""
ENV FM_GATEWAY_API=${FM_GATEWAY_API}
ARG FM_GATEWAY_PASSWORD=""
ENV FM_GATEWAY_PASSWORD=${FM_GATEWAY_PASSWORD}

COPY --from=build /app/package.json ./
COPY --from=build /app/node_modules/ ./node_modules
Expand Down
105 changes: 105 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Important: 127.0.0.1 should be replaced by the external ip address of the machine
version: "3"

services:
gatewayd:
image: fedimint/gatewayd:v0.2.1
command: gatewayd lnd
environment:
# Path to folder containing gateway config and data files
- FM_GATEWAY_DATA_DIR=/gateway_data
# Gateway webserver listen address
- FM_GATEWAY_LISTEN_ADDR=0.0.0.0:8175
# Public URL from which the webserver API is reachable
- FM_GATEWAY_API_ADDR=http://127.0.0.1:8175
# Gateway webserver authentication password
- FM_GATEWAY_PASSWORD=thereisnosecondbest
# Configured gateway routing fees Format: <base_msat>,<proportional_millionths>
- FM_GATEWAY_FEES=0,0
# LND RPC address
- FM_LND_RPC_ADDR=https://lnd:10009
# LND TLS cert file path
- FM_LND_TLS_CERT=/lnd_data/tls.cert
# LND macaroon file path
- FM_LND_MACAROON=/lnd_data/data/chain/bitcoin/signet/admin.macaroon
volumes:
- gateway_datadir:/gateway_data
- lnd_datadir:/lnd_data:ro
ports:
- "8175:8175"
- "8080:8080"
depends_on:
- lnd
restart: always
platform: linux/amd64

lnd:
image: lightninglabs/lnd:v0.17.3-beta
entrypoint: bash
command:
- -c
- lnd --bitcoin.active --bitcoin.signet --bitcoin.dnsseed=0 --bitcoin.node=bitcoind --protocol.wumbo-channels --bitcoind.rpchost=bitcoind --bitcoind.rpcuser=bitcoin --bitcoind.rpcpass=bitcoin --bitcoind.zmqpubrawblock=tcp://bitcoind:48332 --bitcoind.zmqpubrawtx=tcp://bitcoind:48333 --listen=0.0.0.0:9735 --rpclisten=0.0.0.0:10009 --restlisten=0.0.0.0:8080 --tlsextradomain=lnd --noseedbackup
ports:
- "10009:10009"
- "0.0.0.0:9735:9735"
volumes:
- lnd_datadir:/root/.lnd
depends_on:
- bitcoind
restart: always

bitcoind:
image: fedimint/mutinynet-bitcoind:master
command: --rpcuser=bitcoin --rpcpassword=bitcoin -zmqpubrawblock=tcp://[::]:48332 -zmqpubrawtx=tcp://[::]:48333
ports:
- 0.0.0.0:38333:38333
volumes:
- "bitcoin_datadir:/root/.bitcoin"
restart: always
platform: linux/amd64

thunderhub_config_writer:
image: alpine:latest
command:
- sh
- -c
- |
cat <<EOF > /thconfig/accounts.yaml
masterPassword: "thereisnosecondbest"
accounts:
- name: "main lnd"
serverUrl: "lnd:10009"
lndDir: "/root/.lnd"
network: signet
EOF
tail -f /dev/null
volumes:
- thunderhub_datadir:/thconfig
depends_on:
- lnd
restart: always

thunderhub:
build:
context: .
dockerfile: Dockerfile
environment:
- ACCOUNT_CONFIG_PATH=/thconfig/accounts.yaml
- HOST=0.0.0.0
- PORT=3002
- FM_GATEWAY_API=http://127.0.0.1:8175
- FM_GATEWAY_PASSWORD=thereisnosecondbest
ports:
- "0.0.0.0:3002:3002"
volumes:
- lnd_datadir:/root/.lnd
- thunderhub_datadir:/thconfig
depends_on:
- thunderhub_config_writer
restart: always

volumes:
bitcoin_datadir:
lnd_datadir:
gateway_datadir:
thunderhub_datadir:
Loading
Loading