electrum-personal-server icon indicating copy to clipboard operation
electrum-personal-server copied to clipboard

Dockerised installation

Open adam-nygate opened this issue 6 years ago • 9 comments

Any chance that you could add a dockerfile for automating the installation of EPS + Bitcoin Core etc?

adam-nygate avatar Nov 05 '18 21:11 adam-nygate

Yes, there have been thoughts about this. I realize they were only written down here https://github.com/btcpayserver/btcpayserver/issues/294

chris-belcher avatar Nov 06 '18 09:11 chris-belcher

Any idea for when this might materialise?

adam-nygate avatar Nov 19 '18 15:11 adam-nygate

I don't know.

chris-belcher avatar Nov 20 '18 12:11 chris-belcher

I gave it a shot, here's where I am up to:

  • I created a docker image with Electrum Personal Server on Python3.7-alpine
  • A docker-compose.yml file builds an image of Bitcoin Core and tweaks the parameter to make the two dockerized applications work together The first step seems to work, but I'm having various issues when I try to make a docker compose, I'm a bit unexperienced with docker... If someone can help me debug it I'll open a PR

Sosthene00 avatar Jun 12 '19 19:06 Sosthene00

there appears to be a docker project here https://github.com/peleion/eps-docker

chris-belcher avatar Jun 19 '19 10:06 chris-belcher

Yes I find another similar here https://github.com/takinbo/eps-docker and here https://github.com/schulterklopfer/bitcoind_tor_eps_docker What I was up to was more similar to the 2nd one, an easy way to set bitcoind and eps using docker. This look interesting I will have a closer look, but maybe it doesn't make sense to add this kind of stuff in this repo

Sosthene00 avatar Jun 22 '19 11:06 Sosthene00

maybe it doesn't make sense to add this kind of stuff in this repo

Why not? (I've never used docker before so please forgive if its a silly question)

chris-belcher avatar Jun 22 '19 17:06 chris-belcher

Don't worry I was just thinking out loud. It's not silly at all, and to answer it maybe we need to define what we want to achieve with a dockerized electrum personal server. In my view, it could be to :

  1. make the install of electrum personal server easier (not very useful, it's already pretty straightforward, and people that are technical enough to use docker are not very likely to have issues installing electrum personal server in the first place)
  2. Make it easily portable between different environments (I'm not sure if this is really an issue since it's lightweight and don't have much dependencies)
  3. Bundle it with other software like bitcoind, tor, btcpay etc to reduce the configuration overhead for users The proposal made in btcpay repo was clearly 3, and I think that's the valid use case for electrum personal server.

What we can aim to achieve is to make an "official" docker image that people can directly pull for their own project (and keep it up to date), and eventually make some modifications that are needed like adding HD keys at runtime for btcpay. Here's what we should do then:

  1. make a Dockerfile template on this repo
  2. use this Dockerfile to build a "canonical" docker image and upload it to dockerhub
  3. make sure that user can update config.ini at run time (seems to me to be the tricky part, I have to see how the others that made a dockerfile tackle this)
  4. Add other ad hoc features, like the run time add HD keys for btcpay

Let me know what you think.

Sosthene00 avatar Jun 23 '19 13:06 Sosthene00

I would be really interested in EPS in a docker. Any further thoughts on if this will happen here?

maltokyo avatar Sep 21 '19 10:09 maltokyo