Skip to content

Commit

Permalink
Add Ruby devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Oct 7, 2024
1 parent 46ccbdb commit db1b879
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit db1b879

Please sign in to comment.