Skip to content

Commit

Permalink
Merge pull request #66 from Shopify/rm-devcontainer
Browse files Browse the repository at this point in the history
Add devcontainer configuration
  • Loading branch information
casperisfine authored Aug 30, 2023
2 parents 9aec460 + cdbb488 commit 6bddde7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ruby
{
"name": "Ruby",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"build": {
// Path is relative to the devcontainer.json file.
"dockerfile": "../Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
},

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "bundle install"

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.2
FROM mcr.microsoft.com/devcontainers/ruby:1-3.2-bookworm
RUN apt-get update -y && apt-get install -y ragel socat netcat-traditional smem apache2-utils
WORKDIR /app
CMD [ "bash" ]

0 comments on commit 6bddde7

Please sign in to comment.