Skip to content

Commit

Permalink
Devcontainer для работы c VSCode XP (#390)
Browse files Browse the repository at this point in the history
* Init devcontainer

* [devcontainer] Always download latest xp-kbt

* [devcontainer] Force unzip xp-kbt if exists
  • Loading branch information
leitosama authored Jun 19, 2024
1 parent 3a701bc commit 181208d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "Debian",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
"customizations": {
"vscode": {
"extensions": [
"SecurityExpertsCommunity.xp"
],
"settings": {
"xpConfig.kbtBaseDirectory": "/tmp/xp-kbt"
}
}
},
"postCreateCommand": "wget $(curl -s https://api.github.com/repos/vxcontrol/xp-kbt/releases/latest | jq -r '.assets[] | select(.name | contains(\"debian\")).browser_download_url') -O /tmp/xp-kbt.zip && unzip -o /tmp/xp-kbt.zip -d /tmp/xp-kbt"

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

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

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

0 comments on commit 181208d

Please sign in to comment.