Skip to content

Commit

Permalink
dogenet, dogemap, identity
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneWeird committed Oct 4, 2024
1 parent 4938bda commit b0ba9a6
Show file tree
Hide file tree
Showing 10 changed files with 274 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dogebox.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
},
{
"location": "gigawallet"
},
{
"location": "dogenet"
},
{
"location": "dogemap"
},
{
"location": "identity"
}
]
}
Binary file added dogemap/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions dogemap/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"manifestVersion": 1,
"meta": {
"name": "Dogemap",
"version": "0.0.1",
"logoPath": "logo.png",
"shortDescription": "Find shibes \u0026 nodes around the globe",
"longDescription": "",
"upstreamVersions": null
},
"config": {
"sections": null
},
"container": {
"build": {
"nixFile": "pup.nix",
"nixFileSha256": "80146c76ffae6231c70cdcc363e756d7e1b4d9659f1729c29053b6ebc89cdf60"
},
"services": [
{
"name": "dogemap",
"command": {
"exec": "/bin/run.sh",
"cwd": "",
"env": null
}
}
],
"exposes": [
{
"name": "website",
"type": "http",
"port": 8080,
"interfaces": null,
"listenOnHost": false,
"webUI": true
}
],
"requiresInternet": false
},
"interfaces": [],
"dependencies": [
{
"interfaceName": "dogenet-web-api",
"interfaceVersion": "0.0.1",
"permissionGroups": [
"Web API"
],
"source": {
"sourceLocation": "",
"pupName": "",
"pupVersion": "",
"pupLogoBase64": ""
}
}
],
"metrics": null
}
22 changes: 22 additions & 0 deletions dogemap/pup.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ pkgs ? import <nixpkgs> {} }:

let
jampuppy = pkgs.callPackage (pkgs.fetchurl {
url = "https://raw.githubusercontent.com/dogeorg/dogebox-nur-packages/0b01b0f9a537e44d0faf105abd879ea8dfac04ca/pkgs/jampuppy/default.nix";
sha256 = "sha256-467MLF9QKhj1ah823AUzQCL9zhMWzbIPf6bfhZqtvMw=";
}) {};

ui = pkgs.fetchgit {
url = "https://github.com/dogeorg/dogemap-ui.git";
rev = "v0.0.2";
sha256 = "sha256-qITc1EcEYvHOeVszztd7G3l04AJfu/wzOapRokMvndk=";
};

dogemap = pkgs.writeScriptBin "run.sh" ''
#!${pkgs.bash}/bin/bash
${jampuppy}/bin/jampuppy -A index.html --dir ${ui} --host 0.0.0.0 --port 8080 --proxy "/dogenet http://''${DBX_IFACE_DOGENET_WEB_API_HOST}:''${DBX_IFACE_DOGENET_WEB_API_PORT}/"
'';
in
{
inherit dogemap;
}
Binary file added dogenet/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 87 additions & 0 deletions dogenet/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"manifestVersion": 1,
"meta": {
"name": "Dogenet",
"version": "0.0.1",
"logoPath": "logo.png",
"shortDescription": "Node to Node communication protocol",
"longDescription": "",
"upstreamVersions": null
},
"config": {
"sections": null
},
"container": {
"build": {
"nixFile": "pup.nix",
"nixFileSha256": "d2dae1243d04962bf51b5ec136d2c833357fe19491eef9e40916a7aed42ae140"
},
"services": [
{
"name": "dogenet",
"command": {
"exec": "/bin/run.sh",
"cwd": "",
"env": null
}
}
],
"exposes": [
{
"name": "dogenet-gossip",
"type": "tcp",
"port": 42069,
"interfaces": null,
"listenOnHost": true,
"webUI": false
},
{
"name": "handler",
"type": "tcp",
"port": 42068,
"interfaces": ["dogenet-handler"],
"listenOnHost": false,
"webUI": false
},
{
"name": "web-api",
"type": "tcp",
"port": 8080,
"interfaces": ["dogenet-web-api"],
"listenOnHost": false,
"webUI": false
}
],
"requiresInternet": true
},
"interfaces": [
{
"name": "dogenet-handler",
"version": "0.0.1",
"permissionGroups": [
{
"name": "Handler",
"description": "Allows a new Dogenet Handler to be registered",
"severity": 2,
"routes": null,
"port": 42068
}
]
},
{
"name": "dogenet-web-api",
"version": "0.0.1",
"permissionGroups": [
{
"name": "Web API",
"description": "Allows access to Web API",
"severity": 1,
"routes": null,
"port": 8080
}
]
}
],
"dependencies": [],
"metrics": null
}
19 changes: 19 additions & 0 deletions dogenet/pup.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ pkgs ? import <nixpkgs> {} }:

let
dogenet_upstream = pkgs.callPackage (pkgs.fetchurl {
url = "https://raw.githubusercontent.com/dogeorg/dogebox-nur-packages/22e2e8041f9d857861c9b60bcefd6f0291fa5c56/pkgs/dogenet/default.nix";
sha256 = "sha256-fSjv8kJ5VCZ5nUlZpBqmNu/sS4wLU/glinOT7Axao8A=";
}) {};

dogenet = pkgs.writeScriptBin "run.sh" ''
#!${pkgs.bash}/bin/bash
export KEY=`cat /storage/delegated.key`
IP=`${pkgs.curl}/bin/curl https://reflector.dogecoin.org/me | ${pkgs.jq}/bin/jq -r .ip`
cp ${dogenet_upstream}/bin/storage/dbip-city-ipv4-num.csv /storage
${dogenet_upstream}/bin/dogenet --handler ''${DBX_PUP_IP}:42068 --web ''${DBX_PUP_IP}:8080 --public ''${IP}:42069 --dir /storage
'';
in
{
inherit dogenet;
}
Binary file added identity/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions identity/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"manifestVersion": 1,
"meta": {
"name": "Identity",
"version": "0.0.1",
"logoPath": "logo.png",
"shortDescription": "Express your own identity on the network",
"longDescription": "",
"upstreamVersions": null
},
"config": {
"sections": null
},
"container": {
"build": {
"nixFile": "pup.nix",
"nixFileSha256": "1d6749e67102bf2148e5d204d7eaecb9ac68be72ac5392408974b9827582673e"
},
"services": [
{
"name": "identity",
"command": {
"exec": "/bin/run.sh",
"cwd": "",
"env": null
}
}
],
"exposes": [
{
"name": "Identity Editor",
"type": "http",
"port": 8099,
"interfaces": null,
"listenOnHost": false,
"webUI": true
}
],
"requiresInternet": false
},
"interfaces": [],
"dependencies": [
{
"interfaceName": "dogenet-handler",
"interfaceVersion": "0.0.1",
"permissionGroups": ["Handler"],
"source": {
"sourceLocation": "",
"pupName": "",
"pupVersion": "",
"pupLogoBase64": ""
}
}
],
"metrics": null
}
23 changes: 23 additions & 0 deletions identity/pup.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ pkgs ? import <nixpkgs> {} }:

let
identity_upstream = pkgs.callPackage (pkgs.fetchurl {
url = "https://raw.githubusercontent.com/dogeorg/dogebox-nur-packages/2840c907f07133f7f79fd83e2846d490d6236214/pkgs/identity/default.nix";
sha256 = "sha256-4Z+rVHOccoLZlgB5+YQKfKsTPAq5onALVE0BvvVhHLY=";
}) {};

ui = pkgs.fetchgit {
url = "https://github.com/dogeorg/identity-ui.git";
rev = "bb10be894c8953d7c7a8dfe7fe4e80b09d9fbb34";
hash = "sha256-ajfO3OpIWqf+fcTUE9noWO4PbMlMHBpNEfxbJyFftvk=";
};

identity = pkgs.writeScriptBin "run.sh" ''
#!${pkgs.bash}/bin/bash
export KEY=`cat /storage/delegated.key`
${identity_upstream}/bin/identity --bind ''${DBX_PUP_IP}:8099 --web ${ui}/src --dir /storage --handler ''${DBX_IFACE_DOGENET_HANDLER_HOST}:''${DBX_IFACE_DOGENET_HANDLER_PORT}
'';
in
{
inherit identity;
}

0 comments on commit b0ba9a6

Please sign in to comment.