kopia lustrzana https://github.com/c9/core
Store internal IP in docker host
rodzic
6e516281a0
commit
00f48eb9ab
|
@ -1,5 +1,6 @@
|
|||
var git = require("./git");
|
||||
var hostname = require("./hostname");
|
||||
var os = require("os");
|
||||
|
||||
exports.load = function(root) {
|
||||
var manifest = require(root + "/package.json");
|
||||
|
@ -8,6 +9,7 @@ exports.load = function(root) {
|
|||
git.getHeadRevisionSync(root);
|
||||
|
||||
manifest.hostname = hostname.get();
|
||||
manifest.internalIP = os.networkInterfaces().eth0 && os.networkInterfaces().eth0[0].address;
|
||||
|
||||
return manifest;
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue