Skip to content

Instantly share code, notes, and snippets.

View nickboldt's full-sized avatar

Nick Boldt nickboldt

View GitHub Profile
@nickboldt
nickboldt / plugin versions in janus plugins repo 1.1.x branch
Last active March 26, 2024 19:50
plugin versions in janus plugins repo 1.1.x branch vs. showcase 1.1.x branch
3scale-backend 1.4.4
aap-backend 1.5.2
acr 1.2.25
analytics-module-matomo 1.0.3
analytics-provider-segment 1.2.8
dynamic-frontend-plugin 0.0.1
dynamic-plugins-info 1.0.2
feedback 1.0.1
feedback-backend 1.1.1
jfrog-artifactory 1.2.25
@nickboldt
nickboldt / build.sh
Created August 21, 2018 18:38
install phantomjs proxy workaround
# workaround for https://github.com/Medium/phantomjs/issues/806 ?
# workaround for https://github.com/Medium/phantomjs/issues/808#issuecomment-414723230
export http_proxy=http://${buildContentId}+tracking:${accessToken}@${proxyServer}:${proxyPort}
export https_proxy=http://${buildContentId}+tracking:${accessToken}@${proxyServer}:${proxyPort}
mkdir -p /tmp/phantomjs/
pushd /tmp/phantomjs/
# previously mirrored from https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
# because proxy can't do https. in 2018. ugh.
wget http://download.jboss.org/jbosstools/updates/requirements/node/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
popd
#!/bin/bash
#
# Copyright (c) 2024 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# for changes to midstream or missed changes upstream (due to pipeline failure),
@nickboldt
nickboldt / oc-pull-secret-update-global.sh
Last active February 26, 2024 13:55
add tokens/pwds for quay.io (and/or for registry.redhat.io) to your openshift's global (if admin) or per-project (if not admin) pull secret
#!/bin/bash
# set your own logins!
QUAY_USER="****"
QUAY_TOKEN="****"
RRIO_USERNAME="****"
RRIO_PASSWORD="****"
# login to quay.io
REGISTRY="quay.io"
@nickboldt
nickboldt / install-rhdh-latest-build.sh
Last active February 26, 2024 13:55
Install ISCP, CatalogSource from quay.io/rhdh/iib:{next or latest}-${OCP_VER}-${OCP_ARCH}, then install Subscription
# code yoinked from https://gitlab.cee.redhat.com/rhidp/rhdh/-/blob/rhdh-1-rhel-9/build/scripts/installCatalogSourceFromIIB.sh
TMPDIR=/tmp
NAMESPACE="openshift-operators"
INSTALL_PLAN_APPROVAL="Automatic"
OLM_CHANNEL="fast"
# log into your OCP cluster before running this or you'll get null values for OCP vars!
OCP_VER="v$(oc version -o json | jq -r '.openshiftVersion' | sed -r -e "s#([0-9]+\.[0-9]+)\..+#\1#")"
OCP_ARCH="$(oc version -o json | jq -r '.serverVersion.platform' | sed -r -e "s#linux/##")"
@nickboldt
nickboldt / helm-values-testing.yaml
Last active February 7, 2024 20:24
install helm chart
global:
dynamic:
# -- Array of YAML files listing dynamic plugins to include with those listed in the `plugins` field.
# Relative paths are resolved from the working directory of the initContainer that will install the plugins (`/opt/app-root/src`).
includes:
# -- List of dynamic plugins included inside the `janus-idp/backstage-showcase` container image, some of which are disabled by default.
# This file ONLY works with the `janus-idp/backstage-showcase` container image.
- 'dynamic-plugins.default.yaml'
# -- List of dynamic plugins, possibly overriding the plugins listed in `includes` files.
@nickboldt
nickboldt / blobless-sparse-git-clone.sh
Last active January 24, 2024 03:57
faster git checkout options
#!/bin/bash
# for large repos or repos with binary blobs in them, this is much faster
FORK=https://github.com/rhdh-bot/openshift-helm-charts.git
GIT_DIR=/tmp/catalog
BRANCH=rhdh-1-rhel-9
# under 2 seconds
# remote: Counting objects: 100% (4/4), done.
@nickboldt
nickboldt / brew-for-rhpkg.sh
Last active December 20, 2023 21:47
wrapper for brew as replacement for borked rhpkg
#!/bin/bash
# requires
# dnf install -y brewkoji python3-koji-containerbuild-cli \
# openldap-clients python3-rpkg python3-kobo python3-bugzilla \
# gcc openssl-devel bzip2-devel sqlite-devel
# brew container-build rhdh-1.0-rhel-9-containers-candidate
# git+https://pkgs.devel.redhat.com/git/containers/rhdh-operator#5459112551259a7f5a194227e7b3537be38afdf0 \
# --git-branch rhdh-1.0-rhel-9
@nickboldt
nickboldt / index.yaml
Last active November 17, 2023 02:55
RHDH CI build helmchart index.yaml - moved to https://gist.github.com/rhdh-bot/63cef5cb6285889527bd6a67c0e1c2a9 !
apiVersion: v1
entries:
developer-hub:
- annotations:
artifacthub.io/category: integration-delivery
artifacthub.io/license: Apache-2.0
artifacthub.io/links: |
- name: support
url: https://github.com/janus-idp/helm-backstage/issues
- name: Chart Source
@nickboldt
nickboldt / dsc-update.sh
Created October 26, 2023 13:51
update dsc from a newer quay tag
#!/bin/bash
if [[ $1 ]]; then
DSC_VERSION="${1}"
else
DSC_VERSION="next"
fi
cd /tmp || exit;
curl -sSLO https://raw.githubusercontent.com/redhat-developer/devspaces-chectl/devspaces-3-rhel-8/build/scripts/installDscFromContainer.sh; chmod +x installDscFromContainer.sh
./installDscFromContainer.sh "quay.io/devspaces/dsc:${DSC_VERSION}" -t $HOME --verbose