forked from alertbox/zebra-snooze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevcontainer.json
92 lines (80 loc) · 2.87 KB
/
devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"name": "zebra-snooze",
// See complete list https://hub.docker.com/_/ruby/tags
// GitHub Pages dependencies https://pages.github.com/versions/
"image": "ruby:2.7.4-bullseye",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
// Jekyll server
8004,
// Live reload server
35729
],
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
"remoteUser": "root",
// "workspaceMount": "src=${localWorkspaceFolder},dst=/workspace,type=bind,consistency=cached",
// "workspaceFolder": "/workspace",
// Add more features. See complete list https://github.com/devcontainers/features
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": true
},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": false,
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers/features/ruby:1": "none",
"ghcr.io/devcontainers/features/node:1": {}
},
"containerEnv": {
"LANG":"en_US.UTF-8",
"LANGUAGE":"en_US:en",
"TZ":"Etc/UTC",
"LC_ALL":"en_US.UTF-8"
},
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"rebornix.Ruby",
"redhat.vscode-yaml",
"usernamehw.errorlens",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"bierner.github-markdown-preview",
"streetsidesoftware.code-spell-checker",
"znck.grammarly",
"redhat.fabric8-analytics",
"ms-vscode.wordcount"
],
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"editor.formatOnPaste": true,
"editor.guides.bracketPairs": "active",
"debug.internalConsoleOptions": "neverOpen",
"scm.defaultViewMode": "tree",
"files.watcherExclude": {
"**/_site/**": true
}
}
}
},
// Use 'updateContentCommand' to run commands after the container is successfully created.
"updateContentCommand": {
// Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131
"clean": "apt-get purge -y imagemagick imagemagick-6-common",
// If there's a Gemfile.lock, then install the version of Bundler from Gemfile.lock.
// "install": "gem update --system && cat Gemfile.lock | tail -n 2 | grep -C2 'BUNDLED WITH' | tail -n 1 | xargs gem install bundler -v"
"install": "gem update --system && gem install bundler"
},
// Use 'postCreateCommand' to run commands after the container is created.
// If there's a Gemfile, then restore
// It's assumed that the Gemfile will install Jekyll and GitHub Pages too
"postCreateCommand": {
"restore": "bundle install"
}
}