First Commit

- Empty lab settings
- Default hosts configuration
- Readme + DrawIO Schema
This commit is contained in:
Damien A
2023-12-31 19:04:27 +01:00
commit fd0f2a3dbd
8 changed files with 197 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
{
"name": "ContainerLab",
"dockerComposeFile": "docker-compose.yml",
"service": "containerlab",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [50080],
// Mount worspace on container
"workspaceFolder": "/workspace",
// Import ceos images
"postCreateCommand": "docker import images/ceos-lab-4.30.3M.tar.xz ceos:4.30.3M",
// Configure properties specific to VS Code.
"customizations": {
"vscode": {
"extensions": [
"ms-vscode-remote.vscode-remote-extensionpack",
"ms-azuretools.vscode-docker",
"ms-python.python"
]
}
}
}

View File

@@ -0,0 +1,17 @@
version: '3.8'
services:
containerlab:
image: ghcr.io/srl-labs/clab
platform: linux/amd64
command: tail -f /dev/null
privileged: true
network_mode: host
pid: host
ports:
- "50080:50080"
volumes:
- ..:/workspace
- /var/run/docker.sock:/var/run/docker.sock
- /var/run/netns:/var/run/netns
- /etc/hosts:/etc/hosts
- /var/lib/docker/containers:/var/lib/docker/containers