Skip to content

Instantly share code, notes, and snippets.

@ubunteroz
Last active March 18, 2022 03:43
Show Gist options
  • Save ubunteroz/34e7fe398ec923b149a83c6e25cf8586 to your computer and use it in GitHub Desktop.
Save ubunteroz/34e7fe398ec923b149a83c6e25cf8586 to your computer and use it in GitHub Desktop.
Akash SDL for Deploying Dash Masternode
---
version: "2.0"
services:
dashd:
image: ghcr.io/ubunteroz/akash-dashd:0.17.0.3-1
args:
- "-testnet"
- "-server"
- "-bind=0.0.0.0"
- "-rpcallowip=0.0.0.0/0"
- "-rpcbind=0.0.0.0"
- "-rpcuser=dash"
- "-rpcpassword=dash"
- "-prune=100000"
- "-masternodeblsprivkey=4b3e8e175f5348b118ecf752a864618fc3047b5ce867b8f19812dce89f40fb36"
params:
storage:
data:
mount: /root/.dashcore
expose:
- port: 19998
as: 19998
to:
- global: true
- port: 19999
as: 19999
to:
- global: true
profiles:
compute:
dashd-profile:
resources:
cpu:
units: 2.0
memory:
size: 16Gi
storage:
- size: 5Gi
- name: data
size: 128Gi
attributes:
persistent: true
class: beta2
placement:
westcoast:
pricing:
dashd-profile:
denom: uakt
amount: 1000
deployment:
dashd:
westcoast:
profile: dashd-profile
count: 1
FROM debian:bullseye AS base
RUN apt update && apt install wget tini -y && apt clean
FROM base AS download
ENV version=0.17.0
ENV version_rev=0.17.0.3
WORKDIR /app
RUN wget https://github.com/dashpay/dash/releases/download/v${version_rev}/dashcore-${version_rev}-x86_64-linux-gnu.tar.gz
RUN tar xvf dashcore-${version_rev}-x86_64-linux-gnu.tar.gz
RUN mv dashcore-${version}/bin/dashd ./
FROM base
WORKDIR /app
COPY --from=download /app/dashd /usr/bin/
ENTRYPOINT ["tini", "--", "/usr/bin/dashd"]
EXPOSE 9998 9999 19998 19999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment