New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@contiamo/dev

Package Overview
Dependencies
Maintainers
3
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contiamo/dev - npm Package Compare versions

Comparing version 0.5.0-82-g2fdb90d to 0.5.0-83-g99be379

56

index.js

@@ -32,2 +32,10 @@ #!/usr/bin/env node

const restoreScript = slash(
path.relative(process.cwd(), path.join(__dirname, "/scripts/restore.sh"))
);
const snapshotScript = slash(
path.relative(process.cwd(), path.join(__dirname, "/scripts/snapshot.sh"))
);
const dockerCompose = YAML.parse(fs.readFileSync(dockerComposeFile, "utf-8"));

@@ -54,12 +62,12 @@ const services = Object.keys(dockerCompose.services);

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")
}
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");
};

@@ -100,13 +108,31 @@ program.version(version);

`docker-compose -f ${dockerComposeFile} up -d --force-recreate --remove-orphans`
).then(printStartMessage );
).then(printStartMessage);
});
program
.command("load-snapshot")
.description("Load Contiamo dev env snapshot")
.action(() => {
exec(`scripts/restore.sh localdev.snapshot`).then(printStartMessage);
.command("create-snapshot [snapshotPath]")
.description("Create Contiamo dev env snapshot")
.action((snapshotPath = "localdev.snapshot") => {
exec(`bash ${snapshotScript} ${snapshotPath}`)
.then(() => {
console.log("");
console.log(`${snapshotPath} was created 🥳`);
})
.catch((e) => {
console.error(e);
});
});
program
.command("restore-snapshot [snapshotPath]")
.description("Restore Contiamo dev env snapshot")
.action((snapshotPath = "localdev.snapshot") => {
exec(`bash ${restoreScript} ${snapshotPath}`)
.then(printStartMessage)
.catch((e) => {
console.error(e);
});
});
program
.command("logs [SERVICE...]")

@@ -113,0 +139,0 @@ .option(

{
"name": "@contiamo/dev",
"version": "0.5.0-82-g2fdb90d",
"version": "0.5.0-83-g99be379",
"description": "Dev environment for contiamo",

@@ -5,0 +5,0 @@ "bin": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc