File tree Expand file tree Collapse file tree 4 files changed +32
-0
lines changed
Expand file tree Collapse file tree 4 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 100100 "default" : " " ,
101101 "description" : " File mode of the socket when using the socket option."
102102 },
103+ "verbose" : {
104+ "type" : " boolean" ,
105+ "default" : false ,
106+ "description" : " Enable verbose logging."
107+ },
103108 "version" : {
104109 "type" : " string" ,
105110 "default" : " " ,
Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ if [[ -n "$WELCOMETEXT" ]]; then
8787 FLAGS+=(--welcome-text " $WELCOMETEXT " )
8888fi
8989
90+ if [[ " $VERBOSE " == " true" ]]; then
91+ FLAGS+=(--verbose)
92+ fi
93+
9094cat > /usr/local/bin/code-server-entrypoint << EOF
9195#!/usr/bin/env bash
9296set -e
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ # Optional: Import test library bundled with the devcontainer CLI
5+ source dev-container-features-test-lib
6+
7+ # Feature-specific tests
8+ check " code-server version" code-server --version
9+ check " code-server running" pgrep -f ' code-server/lib/node.*/code-server'
10+ check " code-server listening" lsof -i " @127.0.0.1:8080"
11+
12+ check " code-server verbose" grep ' "--verbose"' < /usr/local/bin/code-server-entrypoint
13+
14+ # Report results
15+ reportResults
Original file line number Diff line number Diff line change 192192 "welcomeText" : " Some Welcome Text"
193193 }
194194 }
195+ },
196+ "code-server-verbose" : {
197+ "image" : " mcr.microsoft.com/devcontainers/base:ubuntu" ,
198+ "features" : {
199+ "code-server" : {
200+ "verbose" : true
201+ }
202+ }
195203 }
196204}
You can’t perform that action at this time.
0 commit comments