bitcoinjs / regtest-server

A regtest server for bitcoinjs-lib testing
BSD 3-Clause "New" or "Revised" License
24 stars 24 forks source link

Missing Auth or RPCCOOKIE when building dockerfile #21

Closed ipatka closed 3 months ago

ipatka commented 3 months ago

When building with

docker build -t regtest-server .

then running with

docker run -d -p 8080:8080 regtest-server

The /root/.bitcoin directory is missing and therefore so is the RPCCOOKIE

this is present when using the hosted version docker run -d -p 8080:8080 junderw/bitcoinjs-regtest-server

How can we generate the auth params when building locally?

ipatka commented 3 months ago

Possibly related to this error in the logs qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

comes from the step that runs the bitcoind service

maybe because i built the image on apple silicon. will try buildx

ipatka commented 3 months ago

fixed by building with docker build --platform=linux/amd64 -t regtest-server .