npm.io
1.0.5 • Published 3 years agoCLI

dedocker

Licence
ISC
Version
1.0.5
Deps
3
Size
55 kB
Vulns
0
Weekly
0

Dedocker

Dedocker is decentralized private docker registry built completely on Spheron stack. And by the way, the Founder of Spheron initially inspired me to make this product! Discord Image 1

And this is how it all started!

Discord Image 2

Get Started

The product contains three code bases, Server to server CLI commands and Client, Client, the GUI which can be accessed in website, And CLI to push and pull images from command line.

  1. Server
  2. Client
  3. CLI

Website

Dedocker.xyz

CLI

$ npm install -g dedocker

Technology

  • Node.js and Express.js server, hosted on Spheron Decentralized Compute [know more]
  • Database, Polybase is the database for web3. [know more] - Find schemas and logic here.
  • Docker images are stored in Decentralized storage using Spheron Storage SDK, [know more]
  • React.js, hosted on Spheron Decentralized Hosting [know more]

Follow belows steps to run it locally.

Server

  1. Clone Repo.

$ git clone https://github.com/leostelon/dedock-server dedocker-server $ cd dedocker-server

  1. Add the .env file in the root directory. Add the below variables and replace them with your tokens, respectively.
  SPHERON_TOKEN= < spheron-webapp-token > [Know More](https://docs.spheron.network/rest-api/#creating-an-access-token)

POLYBASE_NAMESPACE= < polybase-namespace > Know More JWT_SECRET= < your-secret > 3. Run server!

$ npm run start

Client

  1. Clone Repo.

$ git clone https://github.com/leostelon/dedocker-client dedocker-client $ cd dedocker-client

  1. Add the .env file in the root directory. Replace the value accordingly.
	  REACT_APP_SERVER_URL=http://localhost:3000
  1. Run client!

$ npm run start

Note: It may prompt to run on a different port, hit enter.

CLI

  1. Clone Repo.

$ git clone https://github.com/leostelon/dedock-cli dedocker-cli $ cd dedocker-cli

  1. Install the package! $ npm run build
CLI Commands

dedocker [command] [flag]

Commands flag Description
push Docker image name & tag
pull Docker image name & tag(optional)
login -t Token from webapp

$ dedocker -h for more info

Todo

  • MVP
  • Private Registry
  • Add context to polybase, user controls the data.
  • Integrate Payments