Skip to content

Commit

Permalink
added compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
pelger committed Nov 10, 2014
1 parent b5cba3c commit daf63eb
Show file tree
Hide file tree
Showing 7 changed files with 379 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ test/elasticsearch-*

*~
.DS_Store
tmp
tmp

workspace

builds
build
25 changes: 25 additions & 0 deletions definitions/infrastructure.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
exports.root = {
type: 'container'
};

exports.redis = {
type: 'process',
specific: {
name: 'redis:2.8',
execute: {
args: '-d -p 6379:6379'
}
}
};

exports.elasticsearch = {
type: 'process',
specific: {
name: 'dockerfile/elasticsearch',
execute: {
args: '-d -p 9200:9200 -p 9300:9300 -v /mnt/elasticsearch:/data',
exec: '/elasticsearch/bin/elasticsearch --network.bind_host=0.0.0.0 --network.publish_host=__TARGETIP__'
}
}
};

60 changes: 60 additions & 0 deletions definitions/services.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
exports.nznpm = {
type: 'process',
specific: {
repositoryUrl: '[email protected]:rjrodger/nodezoo-npm.git',
buildScript: 'build.sh',
execute: {
args: '-p 9001:9001 -d',
exec: '/usr/bin/node srvs/npm-prod.js --seneca.log=plugin:npm'
}
}
};

exports.nzgithub = {
type: 'process',
specific: {
repositoryUrl: '[email protected]:rjrodger/nodezoo-github.git',
buildScript: 'build.sh',
execute: {
args: '-p 9002:9002 -d',
exec: '/usr/bin/node srvs/github-prod.js --seneca.options.github.token=a7626b8dbcd5627671639484460b11900818a64e --seneca.log.all'
}
}
};

exports.nzindex = {
type: 'process',
specific: {
repositoryUrl: '[email protected]:rjrodger/nodezoo-index.git',
buildScript: 'build.sh',
execute: {
args: '-p 9003:9003 -d',
exec: '/usr/bin/node /srvs/index-prod.js'
}
}
};

exports.nzinfo = {
type: 'process',
specific: {
repositoryUrl: '[email protected]:rjrodger/nodezoo-info.git',
buildScript: 'build.sh',
execute: {
args: '-p 9100:9100 -d',
exec: '/usr/bin/node /srvs/info-prod.js'
}
}
};

exports.nzweb = {
type: 'process',
specific: {
repositoryUrl: '[email protected]:rjrodger/nodezoo-web.git',
buildScript: 'build.sh',
execute: {
args: '-p 8000:8000 -d',
exec: '/bin/bash run.sh'
}
}
};

1 change: 1 addition & 0 deletions deployed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"deployed": "858dd5594ca46f274b21dc26e5b74d96432207aa"}
11 changes: 11 additions & 0 deletions system.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
exports.name = 'nodezoo';
exports.namespace = 'nodezoo';
exports.id = '3c1703f1-35bf-446c-875f-9bb50fc9302c';

exports.topology = {
local: {
root: ['elasticsearch', 'redis', 'nzinfo', 'nzindex', 'nzgithub', 'nznpm', 'nzweb']
//root: ['es', 'redis', 'nzinfo', 'nzindex', 'nznpm', 'nzweb']
}
};

275 changes: 275 additions & 0 deletions system.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,275 @@
{
"name": "nodezoo",
"namespace": "nodezoo",
"id": "3c1703f1-35bf-446c-875f-9bb50fc9302c",
"containerDefinitions": [
{
"type": "blank-container",
"id": "85d99b2c-06d0-5485-9501-4d4ed429799c",
"name": "root"
},
{
"type": "docker",
"specific": {
"name": "redis:2.8",
"execute": {
"args": "-d -p 6379:6379"
},
"buildHead": 2,
"binary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/ef16032a03b4595b29f2449bc2e00ab14fc9ffc6a7db795768a70d70253bc336",
"dockerImageId": "ef16032a03b4595b29f2449bc2e00ab14fc9ffc6a7db795768a70d70253bc336",
"imageTag": "nodezoo/redis"
},
"id": "redis",
"name": "redis"
},
{
"type": "docker",
"specific": {
"name": "dockerfile/elasticsearch",
"execute": {
"args": "-d -p 9200:9200 -p 9300:9300 -v /mnt/elasticsearch:/data",
"exec": "/elasticsearch/bin/elasticsearch --network.bind_host=0.0.0.0 --network.publish_host=__TARGETIP__"
},
"buildHead": 2,
"binary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/1981fffa8cf58f994104e55fd405733f636d803810dbf26113c246df016f7ce9",
"dockerImageId": "1981fffa8cf58f994104e55fd405733f636d803810dbf26113c246df016f7ce9"
},
"id": "elasticsearch",
"name": "elasticsearch"
},
{
"type": "docker",
"specific": {
"repositoryUrl": "[email protected]:rjrodger/nodezoo-npm.git",
"buildScript": "build.sh",
"execute": {
"args": "-p 9001:9001 -d",
"exec": "/usr/bin/node srvs/npm-prod.js --seneca.log=plugin:npm"
},
"dockerImageId": "18eab4b319bca4688f9c1cff1ebec84e60d88de1329d59d17d3cd04976c300d8",
"containerBinary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nznpm-1",
"dockerLocalTag": "nodezoo/nznpm-1",
"buildNumber": 1,
"version": "0.1.0",
"buildHead": 4,
"binary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nznpm-3"
},
"id": "nznpm",
"name": "nznpm",
"version": "0.1.0"
},
{
"type": "docker",
"specific": {
"repositoryUrl": "[email protected]:rjrodger/nodezoo-github.git",
"buildScript": "build.sh",
"execute": {
"args": "-p 9002:9002 -d",
"exec": "/usr/bin/node srvs/github-prod.js --seneca.options.github.token=a7626b8dbcd5627671639484460b11900818a64e --seneca.log.all"
},
"dockerImageId": "cea14767cad68424405d206c27965c55ee6cb7fba070e81c2948dfd6ee36039d",
"containerBinary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nzgithub-1",
"dockerLocalTag": "nodezoo/nzgithub-1",
"buildNumber": 1,
"version": "0.1.0",
"buildHead": 3,
"binary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nzgithub-2"
},
"id": "nzgithub",
"name": "nzgithub",
"version": "0.1.0"
},
{
"type": "docker",
"specific": {
"repositoryUrl": "[email protected]:rjrodger/nodezoo-index.git",
"buildScript": "build.sh",
"execute": {
"args": "-p 9003:9003 -d",
"exec": "/usr/bin/node /srvs/index-prod.js"
},
"dockerImageId": "ac0ce485257f42dcfd75c524e539f0113b1cb1918b93505c263ccc809a600301",
"containerBinary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nzindex-1",
"dockerLocalTag": "nodezoo/nzindex-1",
"buildNumber": 1,
"version": "0.1.0",
"buildHead": 3,
"binary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nzindex-2"
},
"id": "nzindex",
"name": "nzindex",
"version": "0.1.0"
},
{
"type": "docker",
"specific": {
"repositoryUrl": "[email protected]:rjrodger/nodezoo-info.git",
"buildScript": "build.sh",
"execute": {
"args": "-p 9100:9100 -d",
"exec": "/usr/bin/node /srvs/info-prod.js"
},
"dockerImageId": "9270c76b36c3c53c5c374dfb71196905847a88f40e9555195b4d199bd3efb5a5",
"containerBinary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nzinfo-1",
"dockerLocalTag": "nodezoo/nzinfo-1",
"buildNumber": 1,
"version": "0.1.0",
"buildHead": 3,
"binary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nzinfo-2"
},
"id": "nzinfo",
"name": "nzinfo",
"version": "0.1.0"
},
{
"type": "docker",
"specific": {
"repositoryUrl": "[email protected]:rjrodger/nodezoo-web.git",
"buildScript": "build.sh",
"execute": {
"args": "-p 8000:8000 -d",
"exec": "/bin/bash run.sh"
},
"dockerImageId": "180e8387be750f5707017ad2d4ab64982f6c43bef47fb22fc7a53ee77f6c0d1f",
"containerBinary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nzweb-1",
"dockerLocalTag": "nodezoo/nzweb-1",
"buildNumber": 1,
"version": "0.1.0",
"buildHead": 2,
"binary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nzweb-1"
},
"id": "nzweb",
"name": "nzweb"
}
],
"topology": {
"containers": {
"root-16f4f95b": {
"id": "root-16f4f95b",
"containedBy": "root-16f4f95b",
"containerDefinitionId": "85d99b2c-06d0-5485-9501-4d4ed429799c",
"type": "blank-container",
"contains": [
"elasticsearch-c31f912e",
"a29c678c-725b-4580-8e9f-49bb3b3397c4",
"3acd0322-a50a-42ac-ac78-96326beb4663",
"65acb2b5-dc54-4a79-8bbb-20cfc0c0ec23",
"68dd6887-9f6f-4a19-8bcf-6069dc7474e1",
"a2cc17ba-47d5-479f-ac1b-92eff48dc0f3",
"nzweb-2a7c341b"
],
"specific": {
"ipaddress": "localhost"
}
},
"elasticsearch-c31f912e": {
"id": "elasticsearch-c31f912e",
"containedBy": "root-16f4f95b",
"containerDefinitionId": "elasticsearch",
"type": "docker",
"contains": [],
"specific": {
"name": "dockerfile/elasticsearch",
"execute": {
"args": "-d -p 9200:9200 -p 9300:9300 -v /mnt/elasticsearch:/data",
"exec": "/elasticsearch/bin/elasticsearch --network.bind_host=0.0.0.0 --network.publish_host=__TARGETIP__"
},
"buildHead": 2,
"binary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/1981fffa8cf58f994104e55fd405733f636d803810dbf26113c246df016f7ce9",
"dockerImageId": "1981fffa8cf58f994104e55fd405733f636d803810dbf26113c246df016f7ce9"
}
},
"nzweb-2a7c341b": {
"id": "nzweb-2a7c341b",
"containedBy": "root-16f4f95b",
"containerDefinitionId": "nzweb",
"type": "docker",
"contains": [],
"specific": {
"repositoryUrl": "[email protected]:rjrodger/nodezoo-web.git",
"buildScript": "build.sh",
"execute": {
"args": "-p 8000:8000 -d",
"exec": "/bin/bash run.sh"
},
"dockerImageId": "180e8387be750f5707017ad2d4ab64982f6c43bef47fb22fc7a53ee77f6c0d1f",
"containerBinary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nzweb-1",
"dockerLocalTag": "nodezoo/nzweb-1",
"buildNumber": 1,
"version": "0.1.0",
"buildHead": 2,
"binary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nzweb-1"
}
},
"a29c678c-725b-4580-8e9f-49bb3b3397c4": {
"id": "a29c678c-725b-4580-8e9f-49bb3b3397c4",
"containedBy": "root-16f4f95b",
"containerDefinitionId": "redis",
"type": "docker",
"contains": [],
"specific": {
"dockerImageId": "ef16032a03b4595b29f2449bc2e00ab14fc9ffc6a7db795768a70d70253bc336",
"containerBinary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/ef16032a03b4595b29f2449bc2e00ab14fc9ffc6a7db795768a70d70253bc336",
"imageTag": "nodezoo/redis"
}
},
"65acb2b5-dc54-4a79-8bbb-20cfc0c0ec23": {
"id": "65acb2b5-dc54-4a79-8bbb-20cfc0c0ec23",
"containedBy": "root-16f4f95b",
"containerDefinitionId": "nzindex",
"type": "docker",
"contains": [],
"specific": {
"dockerImageId": "ac0ce485257f42dcfd75c524e539f0113b1cb1918b93505c263ccc809a600301",
"containerBinary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nzindex-2",
"dockerLocalTag": "nodezoo/nzindex-2",
"buildNumber": 2,
"version": "0.1.0"
}
},
"3acd0322-a50a-42ac-ac78-96326beb4663": {
"id": "3acd0322-a50a-42ac-ac78-96326beb4663",
"containedBy": "root-16f4f95b",
"containerDefinitionId": "nzinfo",
"type": "docker",
"contains": [],
"specific": {
"dockerImageId": "9270c76b36c3c53c5c374dfb71196905847a88f40e9555195b4d199bd3efb5a5",
"containerBinary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nzinfo-2",
"dockerLocalTag": "nodezoo/nzinfo-2",
"buildNumber": 2,
"version": "0.1.0"
}
},
"a2cc17ba-47d5-479f-ac1b-92eff48dc0f3": {
"id": "a2cc17ba-47d5-479f-ac1b-92eff48dc0f3",
"containedBy": "root-16f4f95b",
"containerDefinitionId": "nznpm",
"type": "docker",
"contains": [],
"specific": {
"dockerImageId": "18eab4b319bca4688f9c1cff1ebec84e60d88de1329d59d17d3cd04976c300d8",
"containerBinary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nznpm-3",
"dockerLocalTag": "nodezoo/nznpm-3",
"buildNumber": 3,
"version": "0.1.0"
}
},
"68dd6887-9f6f-4a19-8bcf-6069dc7474e1": {
"id": "68dd6887-9f6f-4a19-8bcf-6069dc7474e1",
"containedBy": "root-16f4f95b",
"containerDefinitionId": "nzgithub",
"type": "docker",
"contains": [],
"specific": {
"dockerImageId": "cea14767cad68424405d206c27965c55ee6cb7fba070e81c2948dfd6ee36039d",
"containerBinary": "/Users/pelger/work/nearform/code/product/nscale/examples/nodezoo/builds/nzgithub-2",
"dockerLocalTag": "nodezoo/nzgithub-2",
"buildNumber": 2,
"version": "0.1.0"
}
}
}
}
}
1 change: 1 addition & 0 deletions timeline.json

Large diffs are not rendered by default.

0 comments on commit daf63eb

Please sign in to comment.