Skip to content

Commit

Permalink
Republish Templates (#280)
Browse files Browse the repository at this point in the history
* tool to update all patch versions

* increment patch version of all Templates to rebuild
  • Loading branch information
joshspicer authored Aug 26, 2024
1 parent 59aa4d3 commit 91ff8f2
Show file tree
Hide file tree
Showing 42 changed files with 100 additions and 117 deletions.
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"useTabs": false,
"tabWidth": 4,
"printWidth": 30,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"semi": true,
"arrowParens": "always"
}
18 changes: 18 additions & 0 deletions build/increment-patch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

# Increments the patch version (x.y.z -> x.y.<z+1>) of all devcontainer-template.json files in the src/ directory.
# Expects a ''.prettierrc' config file in the root

cd "$(dirname "${BASH_SOURCE[0]}")/.." || exit 1

find src/ -name 'devcontainer-template.json' -exec bash -c '
for file; do
version=$(jq -r ".version" "$file")
IFS="." read -r major minor patch <<< "$version"
new_patch=$((patch + 1))
new_version="$major.$minor.$new_patch"
jq ".version = \"$new_version\"" "$file" > tmp.$$.json && mv tmp.$$.json "$file"
done
' bash {} +

npx prettier --write src/**/devcontainer-template.json
6 changes: 2 additions & 4 deletions src/alpine/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "alpine",
"version": "3.2.1",
"version": "3.2.2",
"name": "Alpine",
"description": "Simple Alpine container with Git installed.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/alpine",
Expand All @@ -19,9 +19,7 @@
"default": "3.20"
}
},
"platforms": [
"Any"
],
"platforms": ["Any"],
"optionalPaths": [
".github/*"
]
Expand Down
2 changes: 1 addition & 1 deletion src/anaconda-postgres/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "anaconda-postgres",
"version": "2.0.1",
"version": "2.0.2",
"name": "Anaconda (Python 3) & PostgreSQL",
"description": "Develop Anaconda & PostgreSQL applications in Python3. Installs dependencies from your environment.yml file and the Python extension.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/anaconda-postgres",
Expand Down
4 changes: 2 additions & 2 deletions src/anaconda/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "anaconda",
"version": "2.0.1",
"version": "2.0.2",
"name": "Anaconda (Python 3)",
"description": "Develop Anaconda applications in Python3. Installs dependencies from your environment.yml file and the Python extension.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/anaconda",
Expand All @@ -13,4 +13,4 @@
"optionalPaths": [
".github/*"
]
}
}
8 changes: 3 additions & 5 deletions src/cpp-mariadb/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "cpp-mariadb",
"version": "3.0.1",
"version": "3.0.2",
"name": "C++ & MariaDB",
"description": "Develop C++ applications on Linux. Includes Debian C++ build tools.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/cpp-mariadb",
Expand Down Expand Up @@ -30,10 +30,8 @@
"default": "none"
}
},
"platforms": [
"C++"
],
"platforms": ["C++"],
"optionalPaths": [
".github/*"
]
}
}
6 changes: 2 additions & 4 deletions src/cpp/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "cpp",
"version": "3.0.1",
"version": "3.0.2",
"name": "C++",
"description": "Develop C++ applications on Linux. Includes Debian C++ build tools.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/cpp",
Expand Down Expand Up @@ -30,9 +30,7 @@
"default": "none"
}
},
"platforms": [
"C++"
],
"platforms": ["C++"],
"optionalPaths": [
".github/*"
]
Expand Down
6 changes: 2 additions & 4 deletions src/debian/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "debian",
"version": "3.0.1",
"version": "3.0.2",
"name": "Debian",
"description": "Simple Debian container with Git installed.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/debian",
Expand All @@ -17,9 +17,7 @@
"default": "bullseye"
}
},
"platforms": [
"Any"
],
"platforms": ["Any"],
"optionalPaths": [
".github/*"
]
Expand Down
6 changes: 2 additions & 4 deletions src/docker-existing-docker-compose/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"id": "docker-existing-docker-compose",
"version": "1.2.2",
"version": "1.2.3",
"name": "Existing Docker Compose (Extend)",
"description": "Sample illustrating how to extend an existing Docker Compose file for use in a dev container.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose",
"publisher": "Dev Container Spec Maintainers",
"licenseURL": "https://github.com/devcontainers/templates/blob/main/LICENSE",
"platforms": [
"Any"
],
"platforms": ["Any"],
"optionalPaths": [
".github/*"
]
Expand Down
6 changes: 2 additions & 4 deletions src/docker-existing-dockerfile/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"id": "docker-existing-dockerfile",
"version": "1.3.1",
"version": "1.3.2",
"name": "Existing Dockerfile",
"description": "Sample illustrating reuse of an existing Dockefile.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile",
"publisher": "Dev Container Spec Maintainers",
"licenseURL": "https://github.com/devcontainers/templates/blob/main/LICENSE",
"platforms": [
"Any"
],
"platforms": ["Any"],
"optionalPaths": [
".github/*"
]
Expand Down
6 changes: 2 additions & 4 deletions src/docker-in-docker/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "docker-in-docker",
"version": "1.3.1",
"version": "1.3.2",
"name": "Docker in Docker",
"description": "Create child containers _inside_ a container, independent from the host's docker instance. Installs Docker extension in the container along with needed CLIs.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/docker-in-docker",
Expand Down Expand Up @@ -38,9 +38,7 @@
"default": "true"
}
},
"platforms": [
"Any"
],
"platforms": ["Any"],
"optionalPaths": [
".github/*"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "docker-outside-of-docker-compose",
"version": "2.3.1",
"version": "2.3.2",
"name": "Docker outside of Docker Compose",
"description": "Access your host's Docker install from inside a container when using Docker Compose. Installs Docker extension in the container along with needed CLIs.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/docker-outside-of-docker-compose",
Expand Down Expand Up @@ -38,9 +38,7 @@
"default": "true"
}
},
"platforms": [
"Any"
],
"platforms": ["Any"],
"optionalPaths": [
".github/*"
]
Expand Down
6 changes: 2 additions & 4 deletions src/docker-outside-of-docker/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "docker-outside-of-docker",
"version": "1.3.1",
"version": "1.3.2",
"name": "Docker outside of Docker",
"description": "Access your host's Docker install from inside a dev container. Installs Docker extension in the container along with needed CLIs.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/docker-outside-of-docker",
Expand Down Expand Up @@ -38,9 +38,7 @@
"default": "true"
}
},
"platforms": [
"Any"
],
"platforms": ["Any"],
"optionalPaths": [
".github/*"
]
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet-fsharp/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "dotnet-fsharp",
"version": "3.1.1",
"version": "3.1.2",
"name": "F# (.NET)",
"description": "Develop F# and .NET based applications. Includes all needed SDKs, extensions, and dependencies.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/dotnet-fsharp",
Expand Down
4 changes: 2 additions & 2 deletions src/dotnet-mssql/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "dotnet-mssql",
"version": "3.3.0",
"version": "3.3.1",
"name": "C# (.NET) and MS SQL",
"description": "Develop C# and .NET Core based applications. Includes all needed SDKs, extensions, dependencies and an MS SQL container for parallel database development. Adds an additional MS SQL container to the C# (.NET Core) container definition and deploys any .dacpac files from the mssql .devcontainer folder.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/dotnet-mssql",
Expand All @@ -20,7 +20,7 @@
"7.0-bullseye",
"6.0-bullseye",
"8.0-noble",
"8.0-jammy",
"8.0-jammy",
"7.0-jammy",
"6.0-jammy",
"6.0-focal"
Expand Down
4 changes: 2 additions & 2 deletions src/dotnet-postgres/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "dotnet-postgres",
"version": "3.2.0",
"version": "3.2.1",
"name": "C# (.NET) and PostgreSQL",
"description": "Develop C# and .NET Core based applications. Includes all needed SDKs, extensions, dependencies and a PostgreSQL container for parallel database development. Adds an additional PostgreSQL container to the C# (.NET Core) container definition.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/dotnet-postgres",
Expand All @@ -20,7 +20,7 @@
"7.0-bullseye",
"6.0-bullseye",
"8.0-noble",
"8.0-jammy",
"8.0-jammy",
"7.0-jammy",
"6.0-jammy",
"6.0-focal"
Expand Down
6 changes: 3 additions & 3 deletions src/dotnet/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "dotnet",
"version": "3.2.0",
"version": "3.2.1",
"name": "C# (.NET)",
"description": "Develop C# and .NET based applications. Includes all needed SDKs, extensions, and dependencies.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/dotnet",
Expand All @@ -20,7 +20,7 @@
"7.0-bullseye",
"6.0-bullseye",
"8.0-noble",
"8.0-jammy",
"8.0-jammy",
"7.0-jammy",
"6.0-jammy",
"6.0-focal"
Expand All @@ -36,4 +36,4 @@
"optionalPaths": [
".github/*"
]
}
}
6 changes: 2 additions & 4 deletions src/go-postgres/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "go-postgres",
"version": "4.0.1",
"version": "4.0.2",
"name": "Go & PostgreSQL",
"description": "Use and develop Go + Postgres applications. Includes appropriate runtime args, Go, common tools, extensions, and dependencies.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/go-postgres",
Expand All @@ -21,9 +21,7 @@
"default": "1.22-bookworm"
}
},
"platforms": [
"Go"
],
"platforms": ["Go"],
"optionalPaths": [
".github/*"
]
Expand Down
6 changes: 2 additions & 4 deletions src/go/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "go",
"version": "4.0.1",
"version": "4.0.2",
"name": "Go",
"description": "Develop Go based applications. Includes appropriate runtime args, Go, common tools, extensions, and dependencies.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/go",
Expand All @@ -21,9 +21,7 @@
"default": "1.22-bookworm"
}
},
"platforms": [
"Go"
],
"platforms": ["Go"],
"optionalPaths": [
".github/*"
]
Expand Down
6 changes: 2 additions & 4 deletions src/java-postgres/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "java-postgres",
"version": "4.0.1",
"version": "4.0.2",
"name": "Java & PostgreSQL",
"description": "Develop applications with Java and PostgreSQL. Includes a Java application container and PostgreSQL server.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/java-postgres",
Expand Down Expand Up @@ -33,9 +33,7 @@
"default": "false"
}
},
"platforms": [
"Java"
],
"platforms": ["Java"],
"optionalPaths": [
".github/*"
]
Expand Down
6 changes: 2 additions & 4 deletions src/java/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "java",
"version": "4.0.1",
"version": "4.0.2",
"name": "Java",
"description": "Develop Java applications. Includes the JDK and Java extensions.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/java",
Expand Down Expand Up @@ -33,9 +33,7 @@
"default": "false"
}
},
"platforms": [
"Java"
],
"platforms": ["Java"],
"optionalPaths": [
".github/*"
]
Expand Down
2 changes: 1 addition & 1 deletion src/javascript-node-mongo/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "javascript-node-mongo",
"version": "4.0.1",
"version": "4.0.2",
"name": "Node.js & Mongo DB",
"description": "Develop applications in Node.js and Mongo DB. Includes Node.js, eslint, and yarn in a container linked to a Mongo DB.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/javascript-node-mongo",
Expand Down
2 changes: 1 addition & 1 deletion src/javascript-node-postgres/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "javascript-node-postgres",
"version": "4.0.1",
"version": "4.0.2",
"name": "Node.js & PostgreSQL",
"description": "Develop applications in Node.js and PostgreSQL. Includes Node.js, eslint, and yarn in a container linked to a Postgres DB container",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/javascript-node-postgres",
Expand Down
2 changes: 1 addition & 1 deletion src/javascript-node/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "javascript-node",
"version": "4.0.1",
"version": "4.0.2",
"name": "Node.js & JavaScript",
"description": "Develop Node.js based applications. Includes Node.js, eslint, nvm, and yarn.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/javascript-node",
Expand Down
2 changes: 1 addition & 1 deletion src/jekyll/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "jekyll",
"version": "2.2.1",
"version": "2.2.2",
"name": "Jekyll",
"description": "Develop static sites with Jekyll, includes everything you need to get up and running.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/jekyll",
Expand Down
Loading

0 comments on commit 91ff8f2

Please sign in to comment.