This commit is contained in:
Kewbit 2025-06-27 04:36:33 +07:00
parent dca17484ca
commit c29f267643
5 changed files with 73 additions and 0 deletions

34
Dockerfile.core Normal file
View file

@ -0,0 +1,34 @@
FROM openjdk:21-jdk-bullseye
RUN set -ex && \
apt update && \
apt --no-install-recommends --yes install \
make \
git \
tor
RUN set -ex && adduser --system --group --disabled-password haveno && \
mkdir -p /home/haveno && \
chown -R haveno:haveno /home/haveno
USER haveno
WORKDIR /home/haveno
RUN set -ex && git clone https://foss.haveno.com/haveno-network/haveno-core.git
WORKDIR /home/haveno/haveno-core
RUN git checkout master && \
git reset --hard
RUN make clean && make skip-tests
WORKDIR /home/haveno/haveno-core
RUN rm -rf haveno-desktop/ api-test/
ENTRYPOINT [ "./haveno-daemon" ]
## CMDs are conditional based on type
CMD ["--baseCurrencyNetwork=XMR_MAINNET", "--useLocalhostForP2P=false", "--useDevPrivilegeKeys=false", "--nodePort=9999"]

3
examples/daemon/.env Normal file
View file

@ -0,0 +1,3 @@
NETWORK_VERSION_TAG=1.1.2
BASE_NETWORK=MAINNET
P2P_NETWORK_VERSION="X"

View file

@ -0,0 +1,26 @@
version: '3'
services:
haveno-daemon:
image: havenodex/haveno-core:latest
ports:
- "127.0.0.1:3201:3201"
environment:
- P2P_NETWORK_VERSION=X
- NETWORK_VERSION_TAG=${NETWORK_VERSION_TAG}
- BASE_CURRENCY_NETWORK=XMR_${BASE_NETWORK}
- USE_LOCALHOST_FOR_P2P=false
- USE_DEV_PRIVILEGE_KEYS=false
- NODE_PORT=9999
- APP_NAME=haveno-XMR_${BASE_NETWORK}_DAEMON
- EXPORT_SHADOW=yes
- EXPORT_SHADOW_PATH=daemon/build/libs/daemon-all.sh # Leave this blank in most cases
entrypoint: ["./haveno-daemon"]
command:
- "--baseCurrencyNetwork=XMR_${BASE_NETWORK}"
- "--useLocalhostForP2P=false"
- "--useDevPrivilegeKeys=false"
- "--nodePort=9999"
- "--appName=XMR_${BASE_NETWORK}_DAEMON"
- "--seedNodes=5i6blbmuflq4s4im6zby26a7g22oef6kyp7vbwyru6oq5e36akzo3ayd.onion:2001,dx4ktxyiemjc354imehuaswbhqlidhy62b4ifzigk5p2rb37lxqbveqd.onion:2002,ajbqx4clnjlr7lmzoftuvpvmqafdiilidsgocvokx6bqj3okk56ccfqd.onion:2003"
restart: unless-stopped

0
publish_latest.sh Normal file
View file

10
publish_version.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
set -e
IMAGE=haveno-dex/haveno-core
TAG=latest
docker login
docker build -t $IMAGE:$TAG .
docker push $IMAGE:$TAG