Skip to content

Commit

Permalink
Add CJDNS PKT (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimokus88 authored Nov 6, 2024
1 parent 0c59c37 commit f85051c
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ Awesome DeFi apps you can deploy on Akash
- [V2RAY](v2ray)
- [X-UI](x-ui)
- [Tor Proxy](tor-proxy)
- [CJDNS PKT](cjdns-pkt)

### Databases

Expand Down
8 changes: 8 additions & 0 deletions cjdns-pkt/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ubuntu:22.04
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y curl wget tar jq && \
rm -rf /var/lib/apt/lists/*
COPY ./init.sh /
RUN chmod +x /init.sh
CMD ["/init.sh"]
13 changes: 13 additions & 0 deletions cjdns-pkt/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Deploy CJDNS PKT node on Akash Network

| A quick guide to deploying a `cjdns` **PKT** node using the **Akash Network**.

### Step 1.
Set unique values for network endpoint (line 4 and 21) and `CJDNS_PEERID` variable. Them you can create deployment.

### Step 2.
Got to "Leases" tab and copy socket received from the provider. Them, on "Update" tab, paste socket to `CJDNS_IPV4` and press on "Update Deployment"

### Step 3.

Check [dashboard](https://vinny.cjdns.fr/ptest/), after few minutes you can see actual status your node.
5 changes: 5 additions & 0 deletions cjdns-pkt/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "../config.schema.json",
"ssh": false,
"logoUrl": "https://raw.githubusercontent.com/akash-network/awesome-akash/master/cjdns-pkt/pkt.png"
}
42 changes: 42 additions & 0 deletions cjdns-pkt/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
version: "2.0"
endpoints:
cjdns_endpoint_name: # UNIQUE name, for example "cjdns_dimokus:", and enter this name in line 21.
kind: ip
services:
cjdns:
image: "declab/cjdns:0.1@sha256:252a1886c3b293fe5dd59fa32cb2b3320d612e3c8c7f7b150602880ec2a29ddb"
env:
- "CJDNS_PEERID=PUB_Node_Name" # Peer ID or node name.
- "CJDNS_PORT=3479"
- "CJDNS_SETUSER=0"
- "CJDNS_IPV6=false"
- "CJDNS_IPV4=" # Public socket received from the provider, example: "CJDNS_IPV4=123.123.123.123:3479"
expose:
- port: 3479
as: 3479
proto: udp
to:
- global: true
ip: cjdns_endpoint_name # Name from string 4, for example "cjdns_dimokus"
profiles:
compute:
cjdns:
resources:
cpu:
units: 1
memory:
size: 1Gi
storage:
- size: 1Gi
placement:
dcloud:
pricing:
cjdns:
denom: uakt
amount: 10000
deployment:
cjdns:
dcloud:
profile: cjdns
count: 1
8 changes: 8 additions & 0 deletions cjdns-pkt/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
if [ -z "$CJDNS_IPV4" ]
then
echo Public IP is empty! Set socket "CJDNS_IPV4" in SDL and update deployment!
tail -f /dev/null
fi
wget -O ./cjdns.sh https://pkt.cash/special/cjdns/cjdns.sh ; chmod +x ./cjdns.sh
./cjdns.sh exec
Binary file added cjdns-pkt/pkt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion xmrig-c11/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "../config.schema.json",
"ssh": false,
"logoUrl": "https://raw.githubusercontent.com/akash-network/awesome-akash/master/wxmrig-c11/xmrminer.png"
"logoUrl": "https://raw.githubusercontent.com/akash-network/awesome-akash/master/xmrig-c11/xmrminer.png"
}

0 comments on commit f85051c

Please sign in to comment.