File tree 5 files changed +33
-1
lines changed 5 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 1
1
.PHONY : test
2
2
test :
3
- devcontainer features test
3
+ devcontainer features test --filter " $$ DEVCONTAINER_FEATURE_TEST_FILTER "
4
4
5
5
.PHONY : docs
6
6
docs : src/code-server/README.md
Original file line number Diff line number Diff line change 105
105
"default" : " " ,
106
106
"description" : " The version of code-server to install. If empty, installs the latest version."
107
107
},
108
+ "welcomeText" : {
109
+ "type" : " string" ,
110
+ "default" : " " ,
111
+ "description" : " Text to show on login page."
112
+ },
108
113
"workspace" : {
109
114
"type" : " string" ,
110
115
"default" : " " ,
Original file line number Diff line number Diff line change @@ -83,6 +83,10 @@ if [[ -n "$APPNAME" ]]; then
83
83
FLAGS+=(--app-name " $APPNAME " )
84
84
fi
85
85
86
+ if [[ -n " $WELCOMETEXT " ]]; then
87
+ FLAGS+=(--welcome-text " $WELCOMETEXT " )
88
+ fi
89
+
86
90
cat > /usr/local/bin/code-server-entrypoint << EOF
87
91
#!/usr/bin/env bash
88
92
set -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 welcome-text" grep ' "--welcome-text".*"Some Welcome Text"' < /usr/local/bin/code-server-entrypoint
13
+
14
+ # Report results
15
+ reportResults
Original file line number Diff line number Diff line change 184
184
"appName" : " My Code Server"
185
185
}
186
186
}
187
+ },
188
+ "code-server-welcome-text" : {
189
+ "image" : " mcr.microsoft.com/devcontainers/base:ubuntu" ,
190
+ "features" : {
191
+ "code-server" : {
192
+ "welcomeText" : " Some Welcome Text"
193
+ }
194
+ }
187
195
}
188
196
}
You can’t perform that action at this time.
0 commit comments