@contiamo/dev
Advanced tools
Comparing version 0.5.0-81-gc4775f3 to 0.5.0-82-g2fdb90d
32
index.js
@@ -52,2 +52,14 @@ #!/usr/bin/env node | ||
const printStartMessage = () => { | ||
console.log("") | ||
console.log("Tracing ui: http://localhost:16686/search") | ||
console.log("Dev ui: http://localhost:9898/contiamo/profile") | ||
console.log("SMTP ui: http://localhost:8025") | ||
console.log("Spark ui: http://localhost:4040") | ||
console.log("Email: lemon@example.com") | ||
console.log("Password: localdev") | ||
console.log("stunnel: ❌ not configured") | ||
console.log("JMX: port 5001, username pantheon, password localdev") | ||
} | ||
program.version(version); | ||
@@ -62,3 +74,3 @@ | ||
.command("docker-auth") | ||
.description("Setup docker authentification with gcloud") | ||
.description("Setup docker authentication with gcloud") | ||
.action(() => { | ||
@@ -84,17 +96,17 @@ // Doesn't work with `exec` ¯\_(ツ)_/¯ | ||
.command("start") | ||
.description("Run the local dev enviromnent on http://localhost:9898") | ||
.description("Run the local dev environment on http://localhost:9898") | ||
.action(() => { | ||
exec( | ||
`docker-compose -f ${dockerComposeFile} up -d --force-recreate --remove-orphans` | ||
).then(() => { | ||
console.log("-----"); | ||
console.log("Tracing ui: http://localhost:16686/search"); | ||
console.log("Dev ui: http://localhost:9898"); | ||
console.log("SMTP ui: http://localhost:8025"); | ||
console.log("Email: lemon@example.com"); | ||
console.log("Password: localdev"); | ||
}); | ||
).then(printStartMessage ); | ||
}); | ||
program | ||
.command("load-snapshot") | ||
.description("Load Contiamo dev env snapshot") | ||
.action(() => { | ||
exec(`scripts/restore.sh localdev.snapshot`).then(printStartMessage); | ||
}); | ||
program | ||
.command("logs [SERVICE...]") | ||
@@ -101,0 +113,0 @@ .option( |
{ | ||
"name": "@contiamo/dev", | ||
"version": "0.5.0-81-gc4775f3", | ||
"description": "Dev enviromnent for contiamo", | ||
"version": "0.5.0-82-g2fdb90d", | ||
"description": "Dev environment for contiamo", | ||
"bin": { | ||
@@ -6,0 +6,0 @@ "contiamo-dev": "index.js" |
2695371
426