Skip to content

Commit

Permalink
feat: Add AirGap samples
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha committed Aug 12, 2024
1 parent e81f111 commit 13ac119
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 4 additions & 2 deletions devspaces-dashboard/build/scripts/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ SCRIPTS_BRANCH="$(git rev-parse --abbrev-ref HEAD 2>/dev/null || true)"
if [[ $SCRIPTS_BRANCH != "devspaces-3."*"-rhel-8" ]]; then SCRIPTS_BRANCH="devspaces-3-rhel-8"; fi
configjson=$(curl -sSLo- https://raw.githubusercontent.com/redhat-developer/devspaces/${SCRIPTS_BRANCH}/dependencies/job-config.json)

# Prepare airgap samples, set correct tree version
### Prepare airgap samples
SRC_SAMPLES_JSON="${TARGETDIR}/samples/index.json"
sed -i "s|tree/devspaces-[0-9.]-rhel-8|tree/${SCRIPTS_BRANCH}|g" "${SRC_SAMPLES_JSON}"
SAMPLES_OUTPUT_DIR="${TARGETDIR}/packages/devfile-registry/air-gap"
# Set the correct tree in the samples index.json
sed -i "s|tree/devspaces-[0-9.]-rhel-8|tree/${SCRIPTS_BRANCH}|g" "${SRC_SAMPLES_JSON}"
# Copy new samples
rm -rf "${SAMPLES_OUTPUT_DIR}"
. "${TARGETDIR}/build/scripts/airgap.sh" -i "${SRC_SAMPLES_JSON}" -o "${SAMPLES_OUTPUT_DIR}"

Expand Down
10 changes: 10 additions & 0 deletions devspaces-dashboard/samples/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[
{
"id": "php",
"displayName": "PHP",
"description": "PHP Stack with PHP",
"tags": [
Expand All @@ -14,6 +15,7 @@
}
},
{
"id": "dotnet",
"displayName": ".NET",
"description": ".NET stack with .NET Core SDK 8, Runtime, C# Language Support and Debugger",
"tags": [
Expand All @@ -33,6 +35,7 @@
}
},
{
"id": "nodejs-mongodb",
"displayName": "Node.js MongoDB",
"description": "Node.js stack with NPM 8, Node.js 16 and MongoDB 3.6",
"tags": [
Expand All @@ -49,6 +52,7 @@
}
},
{
"id": "java-lombok",
"displayName": "Java Lombok",
"description": "Java Stack with Project Lombok",
"tags": [
Expand All @@ -65,6 +69,7 @@
}
},
{
"id": "nodejs-express",
"displayName": "Node.js Express",
"description": "Node.js stack with NPM 8, Node.js 16 and Express Web Application",
"tags": [
Expand All @@ -80,6 +85,7 @@
}
},
{
"id": "cpp",
"displayName": "C/C++",
"description": "C and C++ Developer Tools stack with GCC, cmake and make",
"tags": [
Expand All @@ -100,6 +106,7 @@
}
},
{
"id": "ansible",
"displayName": "Ansible",
"description": "Development environment for Ansible playbook creation, testing with Molecule, and ansible-lint checks",
"tags": [
Expand All @@ -114,6 +121,7 @@
}
},
{
"id": "quarkus-rest-api",
"displayName": "Quarkus REST API",
"description": "Quarkus stack with a default REST endpoint application sample",
"tags": [
Expand All @@ -130,6 +138,7 @@
}
},
{
"id": "go",
"displayName": "Go",
"description": "Stack with Go",
"tags": [
Expand All @@ -145,6 +154,7 @@
}
},
{
"id": "python",
"displayName": "Python",
"description": "Python Stack with Python 3.9 and pip",
"tags": [
Expand Down

0 comments on commit 13ac119

Please sign in to comment.