
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
devisrael-docker-manager
Advanced tools
A TypeScript library to manage Docker containers and networks using dockerode
A TypeScript library to manage Docker containers and networks using dockerode, with specialized support for Besu blockchain deployments.
npm install @devisrael/docker-manager
import { DockerManager } from '@jviejo/docker-manager';
const manager = new DockerManager();
// Create a network
const networkId = await manager.createNetwork({
name: 'my-network',
subnet: '172.20.0.0/16'
});
// Create a container
const containerId = await manager.createContainer({
name: 'my-container',
Image: 'nginx:latest',
networkName: 'my-network',
ip: '172.20.0.10'
});
import { BesuDeployer } from '@jviejo/docker-manager';
const deployer = new BesuDeployer({
networkName: 'besu-network',
subnet: '172.25.0.0/16',
dataPath: './besu-network'
});
const nodes = [
{ name: 'bootnode', ip: '172.25.0.10', isBootnode: true },
{ name: 'rpc-node', ip: '172.25.0.11', isRpc: true },
{ name: 'miner-node', ip: '172.25.0.12', isMiner: true }
];
await deployer.deployBesuNetwork(nodes);
createNetwork(options: NetworkCreateOptions): Promise<string>Creates a Docker network with the specified configuration.
createContainer(options: ContainerOptions): Promise<string>Creates and starts a Docker container.
removeContainer(nameOrId: string, force?: boolean): Promise<void>Removes a Docker container.
removeNetwork(networkNameOrId: string, removeContainers?: boolean): Promise<void>Removes a Docker network and optionally its containers.
getNetworkInfo(networkNameOrId: string): Promise<NetworkInfo>Gets detailed information about a network.
getContainerInfo(containerNameOrId: string): Promise<ContainerInfo>Gets detailed information about a container.
deployBesuNetwork(nodes: BesuNodeConfig[]): Promise<void>Deploys a complete Besu blockchain network with the specified nodes.
getNetworkStatus(): Promise<any>Gets the status of the deployed Besu network.
getNodeLogs(nodeName: string): Promise<string>Gets the logs from a specific Besu node (useful for debugging).
interface BesuNodeConfig {
name: string;
ip: string;
port?: number;
isBootnode?: boolean;
isMiner?: boolean;
isRpc?: boolean;
}
interface BesuNetworkConfig {
networkName: string;
subnet: string;
dataPath: string;
}
See the src/examples/ directory for complete examples:
deploy-besu.ts: Complete Besu network deployment example# Install dependencies
npm install
# Run tests
npm test
# Build library
npm run build
# Run example
npm run example:deploy
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)ISC
@devisrael
FAQs
A TypeScript library to manage Docker containers and networks using dockerode
The npm package devisrael-docker-manager receives a total of 2 weekly downloads. As such, devisrael-docker-manager popularity was classified as not popular.
We found that devisrael-docker-manager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.