Giter VIP home page Giter VIP logo

docker's People

Contributors

afilini avatar dr-orlovsky avatar ukolovaolga avatar zoedberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker's Issues

bitcoind: use rpcauth instead of rpc(user|password)

when launching bitcoind this log appears: Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcauth for rpcauth auth generation. (from here)

to generate an rpcauth, from the bitcoin repo, run: ./share/rpcauth/rpcauth.py <username> <password>

for this project, using bitcoin as user and password, the rpcauth is: rpcauth=bitcoin:c15fb70bbb0239f9cfdfc8b5d48d67a2$0c9257124cf65b816e06fb8c657de4c5cc458d3385ca8242ba7ac17b29aeb064

I propose to change the bitcoind command directive in all compose files, putting instead of -rpcuser=bitcoin and -rpcpassword=bitcoin, the rpcauth flag (escaping the dollar symbol for yaml): -rpcauth=bitcoin:c15fb70bbb0239f9cfdfc8b5d48d67a2$$0c9257124cf65b816e06fb8c657de4c5cc458d3385ca8242ba7ac17b29aeb064

Better signet support

  • create dockerhub tags for signet version numbers
  • add wallet support to signet image (since there are no other known wallets supporting signet)
  • make sure electrum and lightning are working with signet

Add testnet docker-compose

Based on the current mainnet version: just change the ports and ENV variables + provide additional -testnet arg in command

Dockerization design principles

After some discussions with @zoedberg in #17 I propose to discuss and then codify design principles we are using for dockerization (Dockerfile design and docker-compose containers). Right now this is an issue, but later once we agree on it I propose to put it as a part of README.md file in this repo.

So my initial take on that:

  1. When you do not need to expose RPC ports to the external world leave them exposed only through docker-compose expose but not port command
  2. In docker-compose connectivity always rely on internal network only; since there might be alternative compose files using same ports on the same IP addresses (for instance for scalability purposes)
  3. Customize as much as possible with environment variables ARG variables
  4. Structure ENTRYPOINT in a way that it can be extended with compose command args later; but if this conflicts with (3) the (3) must have a higher priority and customization in compose file with custom entrypoint is should be preferred.
  5. For RPC use macaroons/files whenever possible (not implemented yet, needs a separate issue).
  6. Run container processes using an unprivileged user instead of root.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.