Comparing version 1.0.0-RC8 to 1.0.0-RC9
{ | ||
"name": "mesh-cli", | ||
"version": "1.0.0-RC8", | ||
"version": "1.0.0-RC9", | ||
"description": "Gentics Mesh CLI", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -15,3 +15,3 @@ # Gentics Mesh CLI | ||
``` | ||
mesh-cli configure | ||
mesh configure | ||
@@ -18,0 +18,0 @@ ? Endpoint http://localhost:8080 |
@@ -48,7 +48,6 @@ 'use strict'; | ||
} else { | ||
var dataDirName = "mesh-data"; | ||
var absPath = path.resolve(dataDirName); | ||
log("Storing data in " + absPath); | ||
ensureDataDir(absPath); | ||
var cmd = 'run -p ' + port + ':8080 -v ' + absPath + ':/data -d --name ' + CONTAINER_NAME + ' ' + image + ':' + tag; | ||
var dataVol = ' -v mesh-data:/graphdb '; | ||
var uploadVol = ' -v mesh-keystore:/keystore '; | ||
var uploadVol = ' -v mesh-uploads:/uploads '; | ||
var cmd = 'run -p ' + port + ':8080 ' + dataVol + uploadVol + ' -d --name ' + CONTAINER_NAME + ' ' + image + ':' + tag; | ||
debug(cmd); | ||
@@ -64,8 +63,4 @@ var p = docker.command(cmd).then(data => { | ||
function ensureDataDir(dirName) { | ||
if (!fs.existsSync(dirName)) { | ||
fs.mkdirSync(dirName); | ||
} | ||
} | ||
/** | ||
@@ -76,2 +71,3 @@ * Remove the container. | ||
docker.command('rm -f ' + CONTAINER_NAME).then(function (data) { | ||
//TODO remove volumes | ||
log("Removed docker container '" + CONTAINER_NAME + "'"); | ||
@@ -78,0 +74,0 @@ }); |
@@ -63,4 +63,4 @@ #!/usr/bin/env node | ||
log(grey('\n - ') + "Start a Gentics Mesh container with version 0.24.0 on port 8888\n"); | ||
log(cyan(' $ mesh docker start -t 0.24.0 -p 8888')); | ||
log(grey('\n - ') + "Start a Gentics Mesh container with version 0.27.0 on port 8888\n"); | ||
log(cyan(' $ mesh docker start -t 0.27.0 -p 8888')); | ||
@@ -77,2 +77,2 @@ log(''); | ||
program.help(); | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
139719
3381