|
1 | 1 | { |
2 | | - "name": "my Clojure app", |
3 | 2 | "build": { |
4 | 3 | "dockerfile": "Dockerfile" |
| 4 | + }, |
5 | 5 |
|
6 | | - }, |
7 | | - |
| 6 | + "features": { |
8 | 7 |
|
9 | | - "features": { |
10 | | - "ghcr.io/devcontainers-contrib/features/clojure-asdf:2": {}, |
| 8 | + "ghcr.io/devcontainers-contrib/features/apt-get-packages:1": { |
| 9 | + "packages": "rlwrap,r-base-dev" |
| 10 | + }, |
| 11 | + "ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": {}, |
11 | 12 | "ghcr.io/rocker-org/devcontainer-features/r-apt:0": {}, |
12 | | - "ghcr.io/devcontainers-contrib/features/leiningen-sdkman:2": {}, |
13 | | - "ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": {} |
14 | | - |
15 | | - |
16 | | -}, |
17 | | - "forwardPorts": ["12345","7777"], |
| 13 | + "ghcr.io/rocker-org/devcontainer-features/rstudio-server": {}, |
| 14 | + "ghcr.io/devcontainers/features/docker-in-docker:2": {}, |
| 15 | + "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { |
| 16 | + "packages": "nloptr,Rserve,ranger,randomForest,ggthemes,ggplot2,mice,dplyr", |
| 17 | + "additionalRepositories": "rforge= 'https://rforge.net'", |
| 18 | + "installSystemRequirements": true |
| 19 | + }, |
| 20 | + "ghcr.io/wxw-matt/devcontainer-features/command_runner:latest": { |
| 21 | + "command1": "bash < <(curl -s https://raw.githubusercontent.com/clojure-lsp/clojure-lsp/master/install)", |
| 22 | + "command2": "bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install)", |
| 23 | + "command3": "bash -c 'wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -O /usr/local/bin/lein && chmod +x /usr/local/bin/lein'" |
| 24 | + } |
| 25 | + }, |
| 26 | + "overrideFeatureInstallOrder": [ |
| 27 | + "ghcr.io/rocker-org/devcontainer-features/r-apt", |
| 28 | + "ghcr.io/devcontainers-contrib/features/apt-get-packages", |
| 29 | + "ghcr.io/rocker-org/devcontainer-features/r-packages" |
| 30 | + ], |
| 31 | + "forwardPorts": [12345], |
| 32 | + "portsAttributes": { |
| 33 | + "12345": { |
| 34 | + "label": "nrepl" |
| 35 | + } |
| 36 | + }, |
18 | 37 | "customizations": { |
19 | 38 | "vscode": { |
20 | | - "settings": { |
21 | | - }, |
22 | | - "extensions": |
23 | | - [ |
24 | | - "vscjava.vscode-java-pack", |
| 39 | + "extensions": [ |
25 | 40 | "betterthantomorrow.calva" |
26 | 41 | ] |
27 | 42 | } |
28 | 43 | }, |
29 | 44 |
|
30 | | - "remoteUser": "vscode", |
31 | | - "onCreateCommand": "Rscript -e 'pak::pkg_install(c(\"ranger\",\"randomForest\",\"ggthemes\",\"ggplot2\",\"mice\",\"dplyr\",\"url::https://rforge.net/Rserve/snapshot/Rserve_1.8-12.tar.gz\"))'" |
| 45 | + "postAttachCommand": |
| 46 | + { "prepare": ["bash","-c", "-i", "source ./.devcontainer/setup.sh"] |
| 47 | + } |
32 | 48 | } |
0 commit comments