add devcontainer

This commit is contained in:
Ryan Cavicchioni 2025-03-24 11:17:05 -05:00
parent 7883107bdf
commit 469931faca
Signed by: ryanc
SSH Key Fingerprint: SHA256:KbXiwUnZnHFwFtt3Bytd+F3FN9pPHn1Z1cxMIE1TPbg
4 changed files with 37 additions and 0 deletions

5
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,5 @@
ARG VARIANT="3.4.2"
FROM ghcr.io/rails/devcontainer/images/ruby:${VARIANT}
RUN mkdir /run/kubernaut && \
chown vscode: /run/kubernaut

4
.devcontainer/boot.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
bundle update --bundler
bundler install

11
.devcontainer/compose.yml Normal file
View File

@ -0,0 +1,11 @@
---
services:
kubernaut:
build:
context: .
dockerfile: Dockerfile
volumes:
- ..:/workspace
command: sleep infinity
memcached:
image: memcached:latest

View File

@ -0,0 +1,17 @@
{
"dockerComposeFile": "compose.yml",
"service": "kubernaut",
"workspaceFolder": "/workspace",
"customizations": {
"vscode": {
"extensions": [
"Shopify.ruby-lsp",
"ms-azuretools.vscode-docker"
]
}
},
"postCreateCommand": ".devcontainer/boot.sh",
"forwardPorts": [
4567
]
}