From db1b8796032c36ff7f6ae17b0f6436eb3e717fed Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Sun, 6 Oct 2024 22:45:08 -0700 Subject: [PATCH] Add Ruby devcontainer --- .devcontainer/Dockerfile | 11 +++++++++++ .devcontainer/devcontainer.json | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..0a3786f --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,11 @@ +ARG VARIANT="3" + +FROM mcr.microsoft.com/vscode/devcontainers/ruby:${VARIANT} + +USER vscode +WORKDIR /home/vscode + +RUN mkdir -p .config/git \ + && echo ".vscode/*" >> .config/git/ignore \ + && echo "*.code-workspace" >> .config/git/ignore \ + && echo ".history/" >> .config/git/ignore diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..c67bfc2 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json", + "name": "Ruby", + "build": { + "dockerfile": "Dockerfile", + "args": { + "VARIANT": "3" + } + }, + "extensions": [ + "rebornix.Ruby", + "ms-vsliveshare.vsliveshare", + "EditorConfig.EditorConfig", + "esbenp.prettier-vscode" + ], + "postCreateCommand": "bundle install", + "remoteUser": "vscode" +}