You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
4.7 KiB

4 years ago
# Specter Desktop in a docker container
[![Build on deploy](https://github.com/cryptoadvance/docker-specter-desktop/workflows/Docker%20build%20on%20tag/badge.svg)](https://github.com/cryptoadvance/docker-specter-desktop/actions?query=workflow%3A%22Docker+build+on+tag%22)
![Version](https://img.shields.io/github/v/release/cryptoadvance/docker-specter-desktop?sort=semver)
[![Docker Pulls Count](https://img.shields.io/docker/pulls/cryptoadvance/specter-desktop.svg?style=flat)](https://hub.docker.com/r/cryptoadvance/specter-desktop)
[Specter Desktop](https://github.com/cryptoadvance/specter-desktop) in a docker container.
This is a fork from [Lightning Chiang Mai](https://github.com/lncm/docker-specter-desktop). Big shoutout to them!
There might be slight differences and we try to follow the original repo. Ideally the images are the same but eventually:
"Don't trust, verify". So we're building them ourself.
4 years ago
## Why?
4 years ago
So we can simplify things and make things easier also ease of running through connected devices (raspberry PIs) as this runs cross platform
4 years ago
## Building
4 years ago
To build yourself you can run
4 years ago
```
4 years ago
docker build -t nolim1t/specter-desktop:v0.8.1 .
4 years ago
```
4 years ago
## Tags
> **NOTE:** For an always up-to-date list see: https://hub.docker.com/r/cryptoadvance/specter-desktop/tags
4 years ago
4 years ago
* `latest` `v0.8.0` `v0.8.1`
4 years ago
* `v0.6.1` `v0.7.0` `v0.7.1` `v0.7.2`
4 years ago
## Maintainer release notes
The github action takes in the current tag from [upstream](https://github.com/cryptoadvance/specter-desktop/tags) but you will need to do a
```
git tag -s vtag.version
```
4 years ago
and then push the tag. Use of -s meaning the tag should be signed which is highly recommended that you do.
## Running
4 years ago
There are two ways you can run this
4 years ago
### From docker command
```bash
4 years ago
# in HWI bridge mode (meaning you would like to run a bridge to HWI)
# Also ensure that your username is permissioned for accessing the USB device. (group=plugdev) or use the --privileged switch
docker run --rm -v $HOME/.specter:/data/.specter cryptoadvance/specter-desktop:v0.8.1 --hwibridge
# Get the Help to see options
docker run --rm -v $HOME/.specter:/data/.specter cryptoadvance/specter-desktop:v0.8.1 --help
4 years ago
# Run in Daemon mode
docker run --rm -v $HOME/.specter:/data/.specter -v $HOME/.bitcoin:/data/.bitcoin cryptoadvance/specter-desktop:v0.8.1 --host your.ip.address --daemon
4 years ago
# Run in docker detached mode (so we can see the logs)
docker run -d=true --name=specter-desktop --rm -v $HOME/.specter:/data/.specter -v $HOME/.bitcoin:/data/.bitcoin cryptoadvance/specter-desktop:v0.8.1 --host your.ip.address
4 years ago
# with flask env file in root (Replace --help with other stuff
docker run --name=specter-desktop --network=host --rm -v $HOME/.specter:/data/.specter -v $HOME/.bitcoin:/data/.bitcoin -v $HOME/.flaskenv:/.flaskenv cryptoadvance/specter-desktop:v0.8.1 --help
```
4 years ago
4 years ago
### Docker compose
4 years ago
This is a bit complex but the idea is to make sure there is a bitcoind installation. Note that the IP needs to be specified (this is as per design by the specter project). However we probably can hack in an entrypoint to improve the flow of things going forward.
4 years ago
4 years ago
I also used host networking for ease of use, and also added ```privileged``` for further ease of use in case your user can't access the usb socket if you would like to run as a bridge to HWI or use the ```--hwibridge``` flag
4 years ago
Or you can use the sample docker-compose in HWIBridge mode [here](https://github.com/cryptoadvance/docker-specter-desktop/blob/master/docker-compose.yml.hwibridge)
4 years ago
```yaml
version: '3.8'
services:
bitcoin:
image: lncm/bitcoind:v0.20.1
container_name: bitcoin
volumes:
- ${PWD}/bitcoin:/root/.bitcoin
- ${PWD}/bitcoin:/data/.bitcoin
- ${PWD}/bitcoin:/data/bitcoin
restart: on-failure
ports:
- "8333:8333"
- "8332:8332"
stop_grace_period: 20m30s
network_mode: host
specter:
4 years ago
image: lncm/specter-desktop:v0.8.1
4 years ago
container_name: specter-desktop
4 years ago
privileged: true
command: --host ip.addr
4 years ago
restart: on-failure
ports:
- "25441:25441"
stop_grace_period: 5m30s
network_mode: host
volumes:
- ${PWD}/.bitcoin:/data/.bitcoin
- ${PWD}/.specter:/data/.specter
4 years ago
- /dev:/dev
- /etc/udev:/etc/udev
4 years ago
```
4 years ago
## Troubleshooting
Please ensure that you have the correct [udev rules](https://github.com/cryptoadvance/docker-specter-desktop/blob/master/udevrules.md) installed
4 years ago