
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
@pubcore/docker-cluster-test
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
This package can be used for scripts (js) to create a docker swarm cluster as a foundation for testing of services dealing with distributed data. Testing the behaviour of distributed-data-services, for instance, if a node goes down, leads to the motivation for this package: create a test-cluster, deploy a service, create some test-load and in parallel shoot down a node.
'use strict'
const {installCluster, purgeCluster, isReady, getVmIp
} = require('@pubcore/docker-cluster-test'),
{deploy} = require('@pubcore/node-docker-build')
//this will lead to 2 virtual machines with name vm1 and vm2
vmSet = {name:'vm', count:2}
//shortcut for createVms(vmSet), startVms(vmSet) and createSwarm(vmSet)
installCluster(vmSet)
//helper function to deploy an example service (via ssh to the test-cluster)
deploy({
moduleName:resolve(__dirname, '../localhost/config'),
logPath:resolve(__dirname)
})
//if test-service is ready on vm2, do some-thing, here - for instance - cleanup
isReady({host:getVmIp(vmSet), port:8080}).then(() => {
//purge stuff, shortcut for stopVms(vmSet) and deleteVms(vmSet)
purgeCluster(vmSet)
},
FAQs
create clusters for testing purpose
The npm package @pubcore/docker-cluster-test receives a total of 0 weekly downloads. As such, @pubcore/docker-cluster-test popularity was classified as not popular.
We found that @pubcore/docker-cluster-test demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.