Skip to content

Commit 5f29f2b

Browse files
authored
chore: optimize Codespaces startup (#545)
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent e273f56 commit 5f29f2b

3 files changed

Lines changed: 53 additions & 3 deletions

File tree

.devcontainer/demo/devcontainer.json

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"service": "web",
55
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
66
"overrideCommand": false,
7+
"hostRequirements": {
8+
"cpus": 4
9+
},
710
"forwardPorts": [8000],
811
"portsAttributes": {
912
"8000": {
@@ -16,11 +19,56 @@
1619
"openFiles": []
1720
},
1821
"vscode": {
22+
"extensions": [],
1923
"settings": {
2024
"chat.disableAIFeatures": true,
21-
"workbench.startupEditor": "none",
25+
"telemetry.telemetryLevel": "off",
2226
"workbench.tips.enabled": false,
23-
"git.openRepositoryInParentFolders": "never"
27+
"workbench.startupEditor": "none",
28+
"workbench.editor.enablePreview": false,
29+
"security.workspace.trust.enabled": false,
30+
"extensions.autoCheckUpdates": false,
31+
"extensions.ignoreRecommendations": true,
32+
"git.enabled": false,
33+
"git.autorefresh": false,
34+
"git.decorations.enabled": false,
35+
"scm.diffDecorations": "none",
36+
"editor.minimap.enabled": false,
37+
"editor.quickSuggestions": {
38+
"other": "off",
39+
"comments": "off",
40+
"strings": "off"
41+
},
42+
"editor.suggestOnTriggerCharacters": false,
43+
"editor.wordBasedSuggestions": "off",
44+
"editor.parameterHints.enabled": false,
45+
"editor.codeLens": false,
46+
"editor.lightbulb.enabled": "off",
47+
"editor.inlayHints.enabled": "off",
48+
"editor.occurrencesHighlight": "off",
49+
"editor.selectionHighlight": false,
50+
"editor.renderLineHighlight": "none",
51+
"editor.renderWhitespace": "none",
52+
"editor.formatOnSave": false,
53+
"editor.accessibilitySupport": "off",
54+
"breadcrumbs.enabled": false,
55+
"terminal.integrated.enablePersistentSessions": false,
56+
"terminal.integrated.gpuAcceleration": "off",
57+
"files.watcherExclude": {
58+
"**/.git/**": true,
59+
"**/data/**": true,
60+
"**/static/**": true,
61+
"**/media/**": true,
62+
"**/thirdparty/**": true,
63+
"**/*.dist": true
64+
},
65+
"search.exclude": {
66+
"**/.git": true,
67+
"**/data": true,
68+
"**/static": true,
69+
"**/media": true,
70+
"**/thirdparty": true
71+
}
2472
}
2573
}
2674
}

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ using GitHub Codespaces. The badge below launches a ready-to-use demo instance:
2323
the application starts automatically, with a demo account already created for you.
2424

2525
.. image:: https://github.com/codespaces/badge.svg
26-
:target: https://github.com/codespaces/new/aboutcode-org/dejacode?ref=main&devcontainer_path=.devcontainer%2Fdemo%2Fdevcontainer.json&quickstart=true
26+
:target: https://github.com/codespaces/new/aboutcode-org/dejacode?ref=main&devcontainer_path=.devcontainer%2Fdemo%2Fdevcontainer.json&machine=standardLinux32gb&quickstart=true
2727
:alt: Open in GitHub Codespaces
2828

2929
#. **Click** the badge above and **confirm** the creation of the Codespace.

compose.demo.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ services:
1616
interval: 10s
1717
timeout: 5s
1818
retries: 5
19+
start_period: 30s
20+
start_interval: 1s
1921

2022
web:
2123
image: ghcr.io/aboutcode-org/dejacode:latest

0 commit comments

Comments
 (0)