
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
@pubcore/docker-cluster-test
Advanced tools
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 2 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.