Added electrs-init.sh to start with proper arguments for listening
typo in cockpit-storage name removed task for linger as need to find another way to do it
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# electrs-init.sh
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
|
||||
/bin/electrs --log-filters INFO --db-dir /db --electrum-rpc-addr="0.0.0.0:50001"
|
||||
@@ -25,6 +25,11 @@
|
||||
dest: ~/Containers/electrs/Containerfile
|
||||
notify: rebuild_electrs
|
||||
|
||||
- name: electrs - Copy electrs-init.sh
|
||||
ansible.builtin.copy:
|
||||
src: electrs/electrs-init.sh
|
||||
dest: ~/Containers/electrs/electrs-init.sh
|
||||
|
||||
- name: electrs - Copy build script
|
||||
ansible.builtin.template:
|
||||
src: electrs/build.sh.j2
|
||||
|
||||
@@ -25,6 +25,10 @@ RUN microdnf update -y && microdnf clean all
|
||||
|
||||
COPY --from=builder /build/target/release/electrs /bin/electrs
|
||||
|
||||
COPY electrs-init.sh /bin/electrs-init.sh
|
||||
|
||||
RUN chmod +x /bin/electrs-init.sh
|
||||
|
||||
# Electrum RPC Mainnet
|
||||
EXPOSE 50001
|
||||
# Electrum RPC Testnet
|
||||
@@ -39,4 +43,4 @@ STOPSIGNAL SIGINT
|
||||
|
||||
HEALTHCHECK CMD curl -fSs http://localhost:4224/ || exit 1
|
||||
|
||||
ENTRYPOINT [ "electrs" ]
|
||||
ENTRYPOINT [ "/bin/electrs-init.sh" ]
|
||||
|
||||
Reference in New Issue
Block a user