|
| 1 | +{ |
| 2 | + "name": "Drasi Server - Trading Demo", |
| 3 | + "image": "mcr.microsoft.com/devcontainers/rust:1-bullseye", |
| 4 | + "features": { |
| 5 | + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}, |
| 6 | + "ghcr.io/devcontainers/features/git:1": {}, |
| 7 | + "ghcr.io/devcontainers/features/common-utils:2": { |
| 8 | + "installZsh": true, |
| 9 | + "configureZshAsDefaultShell": true |
| 10 | + }, |
| 11 | + "ghcr.io/devcontainers/features/node:1": { |
| 12 | + "version": "22" |
| 13 | + }, |
| 14 | + "ghcr.io/devcontainers/features/python:2": { |
| 15 | + "version": "3.12" |
| 16 | + } |
| 17 | + }, |
| 18 | + "initializeCommand": "docker network create drasi-network 2>/dev/null || true", |
| 19 | + "postCreateCommand": "bash .devcontainer/trading/post-create.sh", |
| 20 | + "runArgs": ["--network=drasi-network"], |
| 21 | + "forwardPorts": [8280, 9100, 5632, 5273], |
| 22 | + "portsAttributes": { |
| 23 | + "8280": { |
| 24 | + "label": "Drasi Server API", |
| 25 | + "onAutoForward": "notify" |
| 26 | + }, |
| 27 | + "9100": { |
| 28 | + "label": "HTTP Source", |
| 29 | + "onAutoForward": "silent" |
| 30 | + }, |
| 31 | + "5632": { |
| 32 | + "label": "PostgreSQL", |
| 33 | + "onAutoForward": "silent" |
| 34 | + }, |
| 35 | + "5273": { |
| 36 | + "label": "Trading App", |
| 37 | + "onAutoForward": "notify" |
| 38 | + } |
| 39 | + }, |
| 40 | + "customizations": { |
| 41 | + "vscode": { |
| 42 | + "extensions": [ |
| 43 | + "rust-lang.rust-analyzer", |
| 44 | + "tamasfe.even-better-toml", |
| 45 | + "humao.rest-client", |
| 46 | + "serayuzgur.crates", |
| 47 | + "vadimcn.vscode-lldb" |
| 48 | + ], |
| 49 | + "settings": { |
| 50 | + "rust-analyzer.cargo.features": "all", |
| 51 | + "rust-analyzer.check.command": "clippy", |
| 52 | + "editor.formatOnSave": true |
| 53 | + } |
| 54 | + } |
| 55 | + }, |
| 56 | + "remoteUser": "vscode", |
| 57 | + "containerEnv": { |
| 58 | + "RUST_BACKTRACE": "1" |
| 59 | + } |
| 60 | +} |
0 commit comments