diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..c58a923d --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,5 @@ +FROM mcr.microsoft.com/vscode/devcontainers/ruby:3.2 + +RUN sudo gem update --system +RUN gem install appraisal +RUN sudo chown -R vscode:vscode /usr/local/rvm/gems /usr/local/rvm/gems/default /usr/local/lib/ruby /usr/local/bundle \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..45855a8f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,20 @@ +{ + "name": "Ruby Development Container", + "build": { + "dockerfile": "Dockerfile" + }, + "features": { + "ghcr.io/devcontainers/features/common-utils:1": {} + }, + "postCreateCommand": "bundle install && bundle exec appraisal install", + "customizations": { + "settings": { + "terminal.integrated.shell.linux": "/bin/bash" + }, + "vscode": { + "extensions": [ + "rebornix.Ruby" + ] + } + } +} \ No newline at end of file