Changed pivx-params location to PIVX datadir. Still need a way to set the Firo wallet seed.2024-05-20_merge
parent
ae2ddc4049
commit
f65ae07cf9
12 changed files with 208 additions and 14 deletions
@ -0,0 +1,16 @@ |
||||
dash_core: |
||||
image: i_dash |
||||
build: |
||||
context: dash |
||||
dockerfile: Dockerfile |
||||
container_name: dash_core |
||||
volumes: |
||||
- ${DATA_PATH}/dash:/data |
||||
expose: |
||||
- ${DASH_RPC_PORT} |
||||
logging: |
||||
driver: "json-file" |
||||
options: |
||||
max-size: "10m" |
||||
max-file: "3" |
||||
restart: unless-stopped |
@ -0,0 +1,16 @@ |
||||
firo_core: |
||||
image: i_firo |
||||
build: |
||||
context: firo |
||||
dockerfile: Dockerfile |
||||
container_name: firo_core |
||||
volumes: |
||||
- ${DATA_PATH}/firo:/data |
||||
expose: |
||||
- ${FIRO_RPC_PORT} |
||||
logging: |
||||
driver: "json-file" |
||||
options: |
||||
max-size: "10m" |
||||
max-file: "3" |
||||
restart: unless-stopped |
@ -0,0 +1,16 @@ |
||||
pivx_core: |
||||
image: i_pivx |
||||
build: |
||||
context: pivx |
||||
dockerfile: Dockerfile |
||||
container_name: pivx_core |
||||
volumes: |
||||
- ${DATA_PATH}/pivx:/data |
||||
expose: |
||||
- ${PIVX_RPC_PORT} |
||||
logging: |
||||
driver: "json-file" |
||||
options: |
||||
max-size: "10m" |
||||
max-file: "3" |
||||
restart: unless-stopped |
@ -0,0 +1,27 @@ |
||||
# https://github.com/NicolasDorier/docker-bitcoin/blob/master/README.md |
||||
|
||||
FROM i_swapclient as install_stage |
||||
|
||||
RUN basicswap-prepare --preparebinonly --bindir=/coin_bin --withcoin=dash --withoutcoins=particl && \ |
||||
find /coin_bin -name *.tar.gz -delete |
||||
|
||||
FROM debian:bullseye-slim |
||||
COPY --from=install_stage /coin_bin . |
||||
|
||||
ENV DASH_DATA /data |
||||
|
||||
RUN groupadd -r dash && useradd -r -m -g dash dash \ |
||||
&& apt-get update \ |
||||
&& apt-get install -qq --no-install-recommends gosu \ |
||||
&& rm -rf /var/lib/apt/lists/* \ |
||||
&& mkdir "$DASH_DATA" \ |
||||
&& chown -R dash:dash "$DASH_DATA" \ |
||||
&& ln -sfn "$DASH_DATA" /home/dash/.dash \ |
||||
&& chown -h dash:dash /home/dash/.dash |
||||
VOLUME /data |
||||
|
||||
COPY entrypoint.sh /entrypoint.sh |
||||
ENTRYPOINT ["/entrypoint.sh"] |
||||
|
||||
EXPOSE 9999 9998 |
||||
CMD ["/dash/dashd", "--datadir=/data"] |
@ -0,0 +1,11 @@ |
||||
#!/bin/bash |
||||
set -e |
||||
|
||||
if [[ "$1" == "dash-cli" || "$1" == "dash-tx" || "$1" == "dashd" || "$1" == "test_dash" ]]; then |
||||
mkdir -p "$DASH_DATA" |
||||
|
||||
chown -h dash:dash /home/dash/.dash |
||||
exec gosu dash "$@" |
||||
else |
||||
exec "$@" |
||||
fi |
@ -0,0 +1,25 @@ |
||||
FROM i_swapclient as install_stage |
||||
|
||||
RUN basicswap-prepare --preparebinonly --bindir=/coin_bin --withcoin=firo --withoutcoins=particl && \ |
||||
find /coin_bin -name *.tar.gz -delete |
||||
|
||||
FROM debian:bullseye-slim |
||||
COPY --from=install_stage /coin_bin . |
||||
|
||||
ENV FIRO_DATA /data |
||||
|
||||
RUN groupadd -r firo && useradd -r -m -g firo firo \ |
||||
&& apt-get update \ |
||||
&& apt-get install -qq --no-install-recommends gosu \ |
||||
&& rm -rf /var/lib/apt/lists/* \ |
||||
&& mkdir "$FIRO_DATA" \ |
||||
&& chown -R firo:firo "$FIRO_DATA" \ |
||||
&& ln -sfn "$FIRO_DATA" /home/firo/.firo \ |
||||
&& chown -h firo:firo /home/firo/.firo |
||||
VOLUME /data |
||||
|
||||
COPY entrypoint.sh /entrypoint.sh |
||||
ENTRYPOINT ["/entrypoint.sh"] |
||||
|
||||
EXPOSE 8168 8888 |
||||
CMD ["/firo/firod", "--datadir=/data"] |
@ -0,0 +1,11 @@ |
||||
#!/bin/bash |
||||
set -e |
||||
|
||||
if [[ "$1" == "firo-cli" || "$1" == "firo-tx" || "$1" == "firod" || "$1" == "test_firo" ]]; then |
||||
mkdir -p "$FIRO_DATA" |
||||
|
||||
chown -h firo:firo /home/firo/.firo |
||||
exec gosu firo "$@" |
||||
else |
||||
exec "$@" |
||||
fi |
@ -0,0 +1,25 @@ |
||||
FROM i_swapclient as install_stage |
||||
|
||||
RUN basicswap-prepare --preparebinonly --bindir=/coin_bin --withcoin=pivx --withoutcoins=particl && \ |
||||
find /coin_bin -name *.tar.gz -delete |
||||
|
||||
FROM debian:bullseye-slim |
||||
COPY --from=install_stage /coin_bin . |
||||
|
||||
ENV PIVX_DATA /data |
||||
|
||||
RUN groupadd -r pivx && useradd -r -m -g pivx pivx \ |
||||
&& apt-get update \ |
||||
&& apt-get install -qq --no-install-recommends gosu \ |
||||
&& rm -rf /var/lib/apt/lists/* \ |
||||
&& mkdir "$PIVX_DATA" \ |
||||
&& chown -R pivx:pivx "$PIVX_DATA" \ |
||||
&& ln -sfn "$PIVX_DATA" /home/pivx/.pivx \ |
||||
&& chown -h pivx:pivx /home/pivx/.pivx |
||||
VOLUME /data |
||||
|
||||
COPY entrypoint.sh /entrypoint.sh |
||||
ENTRYPOINT ["/entrypoint.sh"] |
||||
|
||||
EXPOSE 51472 51473 |
||||
CMD ["/pivx/pivxd", "--datadir=/data"] |
@ -0,0 +1,11 @@ |
||||
#!/bin/bash |
||||
set -e |
||||
|
||||
if [[ "$1" == "pivx-cli" || "$1" == "pivx-tx" || "$1" == "pivxd" || "$1" == "test_pivx" ]]; then |
||||
mkdir -p "$PIVX_DATA" |
||||
|
||||
chown -h pivx:pivx /home/pivx/.pivx |
||||
exec gosu pivx "$@" |
||||
else |
||||
exec "$@" |
||||
fi |
Loading…
Reference in new issue