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" +}