Skip to content

Commit c84081f

Browse files
committed
Add devcontanier
1 parent 1c06049 commit c84081f

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM fedora:30
2+
3+
RUN dnf install -y \
4+
ruby rubygems rubygem-bundler rubygem-json \
5+
git gcc gcc-c++ make redhat-rpm-config patch \
6+
ruby-devel libffi-devel zlib-devel

.devcontainer/devcontainer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.205.2/containers/ruby
3+
{
4+
"name": "Ruby",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
},
8+
// Set *default* container specific settings.json values on container create.
9+
"settings": {},
10+
// Add the IDs of extensions you want installed when the container is created.
11+
"extensions": [
12+
"rebornix.Ruby"
13+
],
14+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
15+
// "forwardPorts": [],
16+
// Use 'postCreateCommand' to run commands after the container is created.
17+
"postCreateCommand": "gem install bundler:2.3.5 && bundle install",
18+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
19+
// "remoteUser": "vscode"
20+
}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,17 @@ Add the middleman binary location (probably ~/bin) to $PATH.
1515

1616
To run a local web server to test the site:
1717

18+
```sh
1819
bundle exec middleman server
20+
```
1921

2022
Edit the haml/scss files and commit your changes, pushing to
2123
origin/source.
2224

25+
## Devcontainer
26+
27+
You can also use the devcontainer, for e.g. with VSCode. It should setup automatically and just expects you to run the testing command from above or command you would like to run.
28+
2329
## Deployment
2430

2531
Pushing new commits automatically causes to trigger new build

0 commit comments

Comments
 (0)