From c49f654383a55cec1a9273197d4f12613b8b644e Mon Sep 17 00:00:00 2001 From: Taylor Fausak Date: Sat, 4 Nov 2023 11:32:33 -0500 Subject: [PATCH] Update devcontainer --- .devcontainer/compose.yaml | 21 +++++++++++++++++++++ .devcontainer/devcontainer.json | 14 ++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .devcontainer/compose.yaml create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/compose.yaml b/.devcontainer/compose.yaml new file mode 100644 index 0000000..29382f4 --- /dev/null +++ b/.devcontainer/compose.yaml @@ -0,0 +1,21 @@ +{ + "services": { + "devcontainer": { + "command": "sh -exc 'sleep infinity'", + "image": "public.ecr.aws/acilearning/haskell:9.6.2", + "init": true, + "volumes": [ + "..:/workspace", + "cabal-cache:/home/vscode/.cache/cabal", + "cabal-state:/home/vscode/.local/state/cabal" + ], + "working_dir": "/workspace" + } + }, + "volumes": { + "cabal-cache": null, + "cabal-state": { + "external": true + } + } +} diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..b200a0e --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,14 @@ +{ + "customizations": { + "vscode": { + "extensions": [ + "taylorfausak.purple-yolk" + ] + } + }, + "dockerComposeFile": "compose.yaml", + "initializeCommand": "docker volume create cabal-state", + "postCreateCommand": "cabal update", + "service": "devcontainer", + "workspaceFolder": "/workspace" +}