dockerhub.js:
- request
- time
index.js:
- body-parser
- compression
- errorhandler
- express
- method-override
- request
- serve-static
- serve-favicon
- checksum
session_counter.js:
- cookie-parser
- cookie-session
- node-persist
- time
var ip = process.env.IP || "0.0.0.0";
var port = process.env.PORT || 8080;
var DOCKERHUB_URL = process.env.DOCKERHUB_URL || 'https://hub.docker.com/';
var DEBUG = process.env.DEBUG || false;
var CACHE_TIMEOUT_MINUTES = process.env.CACHE_TIMEOUT_MINUTES || 1440;
var ALLOWED_REPOS = process.env.ALLOWED_REPOS || "biodckr,sauloal";
var FORBIDDEN_REPOS = process.env.FORBIDDEN_REPOS || "";
/repos/:username/ - List of repositories
/info/:username/:reponame/ - Repository information
/history/:username/:reponame/ - Repository building history
/logs/:username/:reponame/:build_code/ - Build logs
/usage/ - Server statistics
/xml/:username/' - Get HTML table
/html/:username/' - Get full HTML
https://hub.docker.com/v2/repositories/<username>/
https://hub.docker.com/v2/repositories/<username>/<repository>/
https://hub.docker.com/v2/repositories/<username>/<repository>/buildhistory/
https://hub.docker.com/v2/repositories/<username>/<repository>/buildhistory/<build id>/