add tari node

This commit is contained in:
Matthew Tran
2025-05-07 03:55:16 -07:00
parent 516a02060c
commit 2c88b9c474
8 changed files with 31 additions and 6 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM ubuntu:24.04
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y wget unzip
WORKDIR /root
# currently v2.0.1
RUN wget -O tari.zip https://github.com/tari-project/tari/releases/download/v2.0.1/tari_suite-2.0.1-09831ca-linux-x86_64.zip
RUN unzip tari.zip -d tari && rm tari.zip
COPY entry.sh ./
CMD ["/bin/bash", "/root/entry.sh"]
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
# TODO clean termination?
~/tari/minotari_node -n -b /data --grpc-enabled --mining-enabled --watch status &
trap 'echo "stopping tari node..."' SIGTERM SIGINT
tail -f /dev/null &
wait $!