Skip to content

Commit

Permalink
updated devcontainer to cmk v2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
curtisbowden committed Apr 22, 2024
1 parent 11e3912 commit 5230e55
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,51 @@
// https://github.com/microsoft/vscode-dev-containers/tree/v0.155.1/containers/ubuntu
{
"name": "Checkmk",

"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick an Ubuntu version: focal, bionic
"args": { "VARIANT": "2.0.0-latest" }
"args": { "VARIANT": "2.2.0-latest" }
},

// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
"customizations": {
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"ms-python.flake8",
"littlefoxteam.vscode-python-test-adapter"
],

// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.defaultProfile.linux": "bash",
"python.defaultInterpreterPath": "/omd/sites/cmk/bin/python3"
}
}
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"littlefoxteam.vscode-python-test-adapter"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": ".devcontainer/symlink.sh",


// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "cmk",

// Uncomment appPort and postStartCommand to start cmk site and web gui with a simple password
//"appPort": ["127.0.0.1:5000:5000"],
//"postStartCommand": "htpasswd -b /omd/sites/cmk/etc/htpasswd cmkadmin cmkadmin && omd start cmk",

// Uncomment to use with podman
//"containerUser": "cmk",
//"runArgs": ["--userns=keep-id"],

"remoteEnv": {
"PATH": "${containerEnv:PATH}:/omd/sites/cmk/bin:/omd/sites/cmk/local/lib/python3/bin/",
"PATH": "/omd/sites/cmk/bin:/omd/sites/cmk/local/lib/python3/bin/:${containerEnv:PATH}",
"OMD_ROOT": "/omd/sites/cmk",
"OMD_SITE": "cmk",
"CMK_SITE_ID": "cmk",
"WORKSPACE": "${containerWorkspaceFolder}"
}

}
}

0 comments on commit 5230e55

Please sign in to comment.