First Commit
- Empty lab settings - Default hosts configuration - Readme + DrawIO Schema
This commit is contained in:
25
.devcontainer/devcontainer.json
Normal file
25
.devcontainer/devcontainer.json
Normal 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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
17
.devcontainer/docker-compose.yml
Normal file
17
.devcontainer/docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user