generated fromdevcontainers/feature-starter
- Notifications
You must be signed in to change notification settings - Fork1
feat: addpasswordFile
,hashedPasswordFile
,githubAuthTokenFile
andabsProxyBasePath
options#10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
4 commits Select commitHold shift + click to select a range
245befb
feat: add `passwordFile` and `hashedPasswordFile` options
DanielleMaywoode928205
feat: add `githubAuthTokenFile` option
DanielleMaywood5a1700c
feat: add 'absProxyBasePath' option
DanielleMaywood3e1dae4
chore: useless cat award 🐈
DanielleMaywoodFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletionssrc/code-server/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletionssrc/code-server/devcontainer-feature.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletionssrc/code-server/install.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletionstest/code-server/code-server-abs-proxy-base-path.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
set -e | ||
# Optional: Import test library bundled with the devcontainer CLI | ||
source dev-container-features-test-lib | ||
# Feature-specific tests | ||
check "code-server version" code-server --version | ||
check "code-server running" pgrep -f 'code-server/lib/node.*/code-server' | ||
check "code-server listening" lsof -i "@127.0.0.1:8080" | ||
check "code-server locale" grep '"--abs-proxy-base-path".*"/user/123/workspace"' < /usr/local/bin/code-server-entrypoint | ||
# Report results | ||
reportResults |
16 changes: 16 additions & 0 deletionstest/code-server/code-server-github-auth-token-file.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -e | ||
# Optional: Import test library bundled with the devcontainer CLI | ||
source dev-container-features-test-lib | ||
# Feature-specific tests | ||
check "code-server version" code-server --version | ||
check "code-server running" pgrep -f 'code-server/lib/node.*/code-server' | ||
check "code-server listening" lsof -i "@127.0.0.1:8080" | ||
cat /tmp/code-server.log | ||
check "code-server github-auth-token-file" grep 'export GITHUB_TOKEN="$(<"/tmp/code-server-github-auth-token")"' < /usr/local/bin/code-server-entrypoint | ||
# Report results | ||
reportResults |
3 changes: 3 additions & 0 deletionstest/code-server/code-server-github-auth-token-file/Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM mcr.microsoft.com/devcontainers/base:ubuntu | ||
RUN su vscode -c 'echo "github auth token" > /tmp/code-server-github-auth-token' |
16 changes: 16 additions & 0 deletionstest/code-server/code-server-hashed-password-file.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -e | ||
# Optional: Import test library bundled with the devcontainer CLI | ||
source dev-container-features-test-lib | ||
# Feature-specific tests | ||
check "code-server version" code-server --version | ||
check "code-server running" pgrep -f 'code-server/lib/node.*/code-server' | ||
check "code-server listening" lsof -i "@127.0.0.1:8080" | ||
check "code-server hashed-password-file" grep 'export HASHED_PASSWORD="$(<"/tmp/code-server-hashed-password")"' < /usr/local/bin/code-server-entrypoint | ||
check "code-server hashed-password" grep 'Using password from $HASHED_PASSWORD' < /tmp/code-server.log | ||
# Report results | ||
reportResults |
3 changes: 3 additions & 0 deletionstest/code-server/code-server-hashed-password-file/Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM mcr.microsoft.com/devcontainers/base:ubuntu | ||
RUN su vscode -c 'echo "\$argon2id\$v=19\$m=16,t=2,p=1\$c2FtcGxlc2FsdA\$YBn10Qizrh/i2jf/rPOCCA" > /tmp/code-server-hashed-password' |
16 changes: 16 additions & 0 deletionstest/code-server/code-server-password-file.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -e | ||
# Optional: Import test library bundled with the devcontainer CLI | ||
source dev-container-features-test-lib | ||
# Feature-specific tests | ||
check "code-server version" code-server --version | ||
check "code-server running" pgrep -f 'code-server/lib/node.*/code-server' | ||
check "code-server listening" lsof -i "@127.0.0.1:8080" | ||
check "code-server password-file" grep $'export PASSWORD="$(<"/tmp/code-server-password")"' < /usr/local/bin/code-server-entrypoint | ||
check "code-server password" grep 'Using password from $PASSWORD' < /tmp/code-server.log | ||
# Report results | ||
reportResults |
3 changes: 3 additions & 0 deletionstest/code-server/code-server-password-file/Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM mcr.microsoft.com/devcontainers/base:ubuntu | ||
RUN su vscode -c "echo 'some sample password' > /tmp/code-server-password" |
38 changes: 38 additions & 0 deletionstest/code-server/scenarios.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.