ref: 844f3d0f1ec52280dfe39200b2ad517f19d34fc3
author: Sergey Ryabin <ryabin.ss@gmail.com>
date: Sun Jan 17 02:40:03 EST 2021
Initial commit
--- /dev/null
+++ b/registry/registry.ndb
@@ -1,0 +1,14 @@
+service=tcp!registry.9p.zone!6675
+ type=registry
+ contact='bebebeko'
+ description='Global registry'
+
+service=tcp!grid.a-b.xyz!9990
+ type=fileserver
+ contact='kvik'
+ description='EMERGENCY 9P CHAT'
+
+service=tcp!registry.demo.metacoma.io!30099
+ type=registry
+ contact='bebebeko'
+ description='9minegrid global registry'
\ No newline at end of file
--- /dev/null
+++ b/registry/run.sh
@@ -1,0 +1,11 @@
+#!/bin/sh -x
+
+DEFAULT_PORT=6675
+INSIDE_PORT=6675
+PORT=${1:-${DEFAULT_PORT}}
+
+docker run -d -it -e INSIDE_PORT=${INSIDE_PORT} \
+ -v `pwd`/host:/usr/inferno-os/host:rw \
+ -p 0.0.0.0:${DEFAULT_PORT}:${INSIDE_PORT} \
+ metacoma/inferno-os:latest \
+ sh -c "{ ndb/cs; mkdir -p /mnt/registry; mount { ndb/registry -f /host/registry.ndb } /mnt/registry; listen -A 'tcp!*!'6675 { export /mnt/registry & } & }"
\ No newline at end of file