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 f22a53d commit 1b8b5dd
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 2 deletions.
10 changes: 10 additions & 0 deletions devspaces-dashboard/build/scripts/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ echo ".github/
.git/
.gitattributes
packages/dashboard-frontend/assets/branding/
packages/devfile-registry/air-gap/index.json
build/scripts/
container.yaml
/content_sets.*
Expand All @@ -81,6 +82,15 @@ 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
SRC_SAMPLES_JSON="${TARGETDIR}/samples/index.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}"

# get yarn version + download it for use in Brew; cannot use `npm i -g yarn` downstream so must install it this way
if [[ $GET_YARN -eq 1 ]]; then
YARN_VERSION=$(echo "${configjson}" | jq -r --arg DS_VERSION "${DS_VERSION}" '.Other["YARN_VERSION"][$DS_VERSION]');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
[
]
[]
171 changes: 171 additions & 0 deletions devspaces-dashboard/samples/index.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions devspaces-operator-bundle/build/scripts/sync-che-olm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ for CSVFILE in ${TARGETDIR}/manifests/devspaces.csv.yaml; do
["RELATED_IMAGE_che_tls_secrets_creation_job"]="DELETEME"
["RELATED_IMAGE_gateway_header_sidecar"]="DELETEME"

["CHE_DEFAULT_SPEC_COMPONENTS_DEVFILEREGISTRY_EXTERNAL_DEVFILE_REGISTRIES"]="[]"
["CHE_DEFAULT_SPEC_COMPONENTS_PLUGINREGISTRY_OPENVSXURL"]=""
["CHE_DEFAULT_SPEC_DEVENVIRONMENTS_DISABLECONTAINERBUILDCAPABILITIES"]="false"
["CHE_DEFAULT_SPEC_DEVENVIRONMENTS_DEFAULTEDITOR"]="che-incubator/che-code/latest"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ declare -A operator_replacements=(
["RELATED_IMAGE_che_tls_secrets_creation_job"]="DELETEME"
["RELATED_IMAGE_gateway_header_sidecar"]="DELETEME"

["CHE_DEFAULT_SPEC_COMPONENTS_DEVFILEREGISTRY_EXTERNAL_DEVFILE_REGISTRIES"]="[]"
["CHE_DEFAULT_SPEC_COMPONENTS_PLUGINREGISTRY_OPENVSXURL"]=""
["CHE_DEFAULT_SPEC_DEVENVIRONMENTS_DISABLECONTAINERBUILDCAPABILITIES"]="false"
["CHE_DEFAULT_SPEC_DEVENVIRONMENTS_DEFAULTEDITOR"]="che-incubator/che-code/latest"
Expand Down
1 change: 1 addition & 0 deletions devspaces-operator/build/scripts/sync-che-operator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ declare -A operator_replacements=(
["RELATED_IMAGE_che_tls_secrets_creation_job"]="DELETEME"
["RELATED_IMAGE_gateway_header_sidecar"]="DELETEME"

["CHE_DEFAULT_SPEC_COMPONENTS_DEVFILEREGISTRY_EXTERNAL_DEVFILE_REGISTRIES"]="[]"
["CHE_DEFAULT_SPEC_COMPONENTS_PLUGINREGISTRY_OPENVSXURL"]=""
["CHE_DEFAULT_SPEC_DEVENVIRONMENTS_DISABLECONTAINERBUILDCAPABILITIES"]="false"
["CHE_DEFAULT_SPEC_DEVENVIRONMENTS_DEFAULTEDITOR"]="che-incubator/che-code/latest"
Expand Down

0 comments on commit 1b8b5dd

Please sign in to comment.