mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 18:38:09 +01:00
docker: Add PIVX, Dash and Firo to isolated config
Changed pivx-params location to PIVX datadir. Still need a way to set the Firo wallet seed.
This commit is contained in:
25
docker/production/pivx/Dockerfile
Normal file
25
docker/production/pivx/Dockerfile
Normal file
@@ -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"]
|
||||
11
docker/production/pivx/entrypoint.sh
Executable file
11
docker/production/pivx/entrypoint.sh
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user