Skip to content

Commit

Permalink
Merge pull request #12 from totem/develop
Browse files Browse the repository at this point in the history
0.6.1 Release
  • Loading branch information
sukrit007 committed Mar 11, 2015
2 parents af4f0e6 + 7a01283 commit 429d4fa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -106,6 +106,7 @@ might be removed in future releases.
| HIPCHAT_ROOM | Hipchat room to be used for failed build notification ||
| BASE_URL | Base Url for Image Factory. Used for forming notification URLs | http://localhost:8080|
| DOCKER_REPO_BASE | Docker base repository url (e.g: quay.io/myorg)| quay.io/totem |
| TOTEM_ENV | Name of totem environment (e.g. production, local, development) | local |


## Prerequisites (Development)
Expand Down
2 changes: 1 addition & 1 deletion bin/supervisord-wrapper.sh
Expand Up @@ -6,7 +6,7 @@ export ETCD_PORT='${ETCD_PORT:-4001}'
export ETCD_TOTEM_BASE='${ETCD_TOTEM_BASE:-/totem}'
export SSH_HOST_KEY='${SSH_HOST_KEY:-/root/.ssh/id_rsa}'
export ENC_PASSPHRASE='${ENC_PASSPHRASE:-password}'
export CLUSTER_NAME='${CLUSTER_NAME:-totem-local}'
export TOTEM_ENV='${TOTEM_ENV:-local}'
export DOCKER_REPO_BASE='${DOCKER_REPO_BASE:-quay.io/totem}'
export HOOK_SECRET='${HOOK_SECRET:-changeit}'
export HOOK_POST_URL='${HOOK_POST_URL}'
Expand Down
6 changes: 3 additions & 3 deletions lib/factory.js
Expand Up @@ -72,7 +72,7 @@ var DEFAULT_CONFIG = {
room: process.env.HIPCHAT_ROOM
},
baseUrl: process.env.BASE_URL || 'http://localhost:8080',
cluster: process.env.CLUSTER_NAME || 'local'
env: process.env.TOTEM_ENV || 'local'
};

module.exports = Factory;
Expand Down Expand Up @@ -156,7 +156,7 @@ Factory.prototype.initApi = function initApi() {
restify.queryParser(),
bodyParser[0], // First element contains middleware for parsing raw text,
usingSignedRequest(_this.config.hook.secret, 'X-Hub-Signature'),
// Second Elevement contains middleware for parsing JSON
// Second Element contains middleware for parsing JSON
bodyParser[1],
corsResponse()
];
Expand Down Expand Up @@ -338,7 +338,7 @@ Factory.prototype.newJob = function newJob(context) {
//Notify build was successful / failed.
var notifyCtx = _.extend({}, context, {
baseUrl: _this.config.baseUrl,
cluster: _this.config.cluster,
env: _this.config.env,
id: job.id
});
_.forEach(_this.notifiers, function(notifier) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "image-factory",
"version": "0.6.0",
"version": "0.6.1",
"description": "Docker Image Factory",
"keywords": [
"docker",
Expand Down

0 comments on commit 429d4fa

Please sign in to comment.