infra/aws/docker/index.js
function (options, cb) {
		
		options.soajs.log.debug("Generating docker token");
		crypto.randomBytes(1024, function (err, buffer) {
			if (err) {
				return cb(err);
			}
			options.soajs.registry.deployer.container.docker.remote.apiProtocol = 'https';
			options.soajs.registry.deployer.container.docker.remote.apiPort = 32376;
			options.soajs.registry.deployer.container.docker.remote.auth = {
				token: buffer.toString('hex')
			};
			return cb(null, true);
		});
	}
function (options, cb) {
		
		options.soajs.log.debug("Generating docker token");
		crypto.randomBytes(1024, function (err, buffer) {
			if (err) {
				return cb(err);
			}
			options.soajs.registry.deployer.container.docker.remote.apiProtocol = 'https';
			options.soajs.registry.deployer.container.docker.remote.apiPort = 32376;
			options.soajs.registry.deployer.container.docker.remote.auth = {
				token: buffer.toString('hex')
			};
			return cb(null, true);
		});
	}
function ( options , cb ) { options . soajs . log . debug ( "Generating docker token" ) ; crypto . randomBytes ( 1024 , function ( err , buffer ) { if ( err ) { return cb ( err ) ; } options . soajs . registry . deployer . container . docker . remote . apiProtocol = 'https' ; options . soajs . registry . deployer . container . docker . remote . apiPort = 32376 ; options . soajs . registry . deployer . container . docker . remote . auth = { token : buffer . toString ( 'hex' ) } ; return cb ( null , true ) ; } ) ; }
Execute Deploy Cluster Pre Operation
@param options
@param cb
@returns {*}
Execute Deploy Cluster Pre Operation