add devcontainer
This commit is contained in:
parent
7883107bdf
commit
469931faca
5
.devcontainer/Dockerfile
Normal file
5
.devcontainer/Dockerfile
Normal 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
4
.devcontainer/boot.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
bundle update --bundler
|
||||||
|
bundler install
|
11
.devcontainer/compose.yml
Normal file
11
.devcontainer/compose.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
services:
|
||||||
|
kubernaut:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
volumes:
|
||||||
|
- ..:/workspace
|
||||||
|
command: sleep infinity
|
||||||
|
memcached:
|
||||||
|
image: memcached:latest
|
17
.devcontainer/devcontainer.json
Normal file
17
.devcontainer/devcontainer.json
Normal 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
|
||||||
|
]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user