forked from devcontainers/features
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
118 changed files
with
3,734 additions
and
1,113 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,18 +1,17 @@ | ||
{ | ||
"image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:0-18", | ||
"remoteUser": "node", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"mads-hartmann.bash-ide-vscode" | ||
] | ||
} | ||
}, | ||
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-18", | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": {} | ||
}, | ||
"postCreateCommand": "npm install -g @devcontainers/cli", | ||
"hostRequirements": { | ||
"cpus": 4 | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"mads-hartmann.bash-ide-vscode" | ||
] | ||
} | ||
} | ||
} |
This file contains 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,37 @@ | ||
name: "Stress test - Docker in Docker" | ||
on: | ||
pull_request: | ||
paths: | ||
- 'src/docker-in-docker/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
test-pass: [ 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 ] | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: "Install latest devcontainer CLI" | ||
run: npm install -g @devcontainers/cli | ||
|
||
- name: "Generating tests for 'docker-in-docker' which validates if docker daemon is running" | ||
run: devcontainer features test --skip-scenarios -f docker-in-docker -i mcr.microsoft.com/devcontainers/base:ubuntu . | ||
|
||
test-onCreate: | ||
strategy: | ||
matrix: | ||
test-pass: [ 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 ] | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: "Install latest devcontainer CLI" | ||
run: npm install -g @devcontainers/cli | ||
|
||
- name: "Generating tests for 'docker-in-docker' which validates if docker daemon is available within 'onCreateCommand'" | ||
run: devcontainer features test -f docker-in-docker --skip-autogenerated --filter "docker_with_on_create_command" |
This file contains 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
This file contains 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
This file contains 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,52 @@ | ||
name: "Updates vendor 'dotnet-install' script" | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 0' # Runs every Sunday at midnight UTC (adjust as needed) | ||
|
||
jobs: | ||
fetch-latest-dotnet-install: | ||
runs-on: ubuntu-latest | ||
environment: documentation # grants access to secrets.PAT, for creating pull requests | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Run fetch-latest-dotnet-install.sh | ||
run: src/dotnet/scripts/fetch-latest-dotnet-install.sh | ||
|
||
- name: Create a PR for dotnet-install.sh | ||
id: push_image_info | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT }} | ||
run: | | ||
set -e | ||
echo "Start." | ||
# Configure git and Push updates | ||
git config --global user.email [email protected] | ||
git config --global user.name github-actions | ||
git config pull.rebase false | ||
branch=automated-script-update-$GITHUB_RUN_ID | ||
git checkout -b $branch | ||
message='[Updates] Automated vendor 'dotnet-install' script' | ||
# Add / update and commit | ||
git add src/dotnet/scripts/vendor/dotnet-install.sh | ||
git commit -m 'Automated dotnet-install script update' || export NO_UPDATES=true | ||
# Bump version and push | ||
if [ "$NO_UPDATES" != "true" ] ; then | ||
echo "$(jq --indent 4 '.version = (.version | split(".") | map(tonumber) | .[2] += 1 | join("."))' src/dotnet/devcontainer-feature.json)" > src/dotnet/devcontainer-feature.json | ||
git add src/dotnet/devcontainer-feature.json | ||
git commit -m 'Bump version' | ||
git push origin "$branch" | ||
gh api \ | ||
--method POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
/repos/${GITHUB_REPOSITORY}/pulls \ | ||
-f title="$message" \ | ||
-f body="$message" \ | ||
-f head="$branch" \ | ||
-f base="$GITHUB_REF_NAME" | ||
fi |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.