Skip to content

Instantly share code, notes, and snippets.

View rafaeltuelho's full-sized avatar
🎯
Focusing

Rafael Torres Coelho Soares (aka Tuelho) rafaeltuelho

🎯
Focusing
  • Red Hat Inc.
  • Frisco, TX, USA
  • 01:41 (UTC -06:00)
View GitHub Profile
@rafaeltuelho
rafaeltuelho / backstage-community-plugin-announcements-dynamic-export.md
Last active February 4, 2025 21:35
Dynamic Plugin export for Red Hat Developer Hub based iDPs

Dynamic Plugin export for Red Hat Developer Hub based iDPs

This tutorial describes how to export a existing Backstage plugin as a Dynamic plugin to be loaded into Red Hat Developer Hub.

For this demo I choose the Announcements plugin for Backstage as it is composed by multiple components including front-end UI, backend and search-backend.

Reference documentation:

@rafaeltuelho
rafaeltuelho / rhtas-tools-devfile.yaml
Created November 4, 2024 21:10
Sample Dev Spaces'devfile with Red Hat Trusted Artifact Signer (RHTAS based on Sigstore project) tools for code/container signing
schemaVersion: 2.2.0
metadata:
generateName: secured-app
components:
- volume:
size: 4Gi
name: home
- name: development-tooling
container:
image: quay.io/devfile/universal-developer-image:latest
@rafaeltuelho
rafaeltuelho / OpenshiftArtifactoryHa-cr.yaml
Last active August 13, 2024 19:55
Deploys an JFrog Artifactory instance using the JFrog Operator for Openshift 4.x
apiVersion: charts.helm.k8s.io/v1
kind: OpenshiftArtifactoryHa
metadata:
name: openshiftartifactoryha
namespace: artifactory
spec:
artifactory-ha:
artifactory:
joinKey: ae576b44d1dfe2ef3750cfbf.... #openssl rand -hex 32
masterKey: 4c2bd4d2082a0c2fa2e54... #openssl rand -hex 32
@rafaeltuelho
rafaeltuelho / bitnami-postgresql-values.yaml
Created August 8, 2024 22:08
Deploys a Postgres DB instance using bitami/postgresql Helm Chart on Openshift 4.x
global:
postgresql:
auth:
postgresPassword: "secret"
username: "artifactory"
password: "artifactory"
database: "artifactory"
primary:
persistence:
enabled: false
@rafaeltuelho
rafaeltuelho / jfrog-artifactory-oss-values.yaml
Created August 8, 2024 18:05
JFrog Artifactory Chart values to deploy on Openshift 4.x
# Default values for artifactory-oss.
# This is a YAML-formatted file.
# Beware when changing values here. You should know what you are doing!
# Access the values with {{ .Values.key.subkey }}
# This chart is based on the main artifactory chart with some customizations.
# See all supported configuration keys in https://github.com/jfrog/charts/tree/master/stable/artifactory
containerSecurityContext:
@rafaeltuelho
rafaeltuelho / pymongo-fastapi-crud-devworkspace-cr.yaml
Last active October 28, 2024 21:59
Sample Python3 + MongoDB DevWorkspace CR which creates a Openshift Dev Spaces workspace
apiVersion: workspace.devfile.io/v1alpha2
kind: DevWorkspace
metadata:
annotations:
che.eclipse.org/che-editor: che-incubator/che-code/latest
name: pymongo-fastapi-crud
namespace: user1-devspaces
finalizers:
- rbac.controller.devfile.io
spec:
@rafaeltuelho
rafaeltuelho / gitlab-on-openshift-install.md
Last active October 14, 2024 16:51
Installing Gitlab on Openshift 4.x using Helm Chart
  • Install Cert Manager
    • using the Operator Hub

cert-manager-operator

  • using helm chart
helm repo add jetstack https://charts.jetstack.io --force-update

helm install \
apiVersion: org.eclipse.che/v2
kind: CheCluster
metadata:
  name: devspaces
  namespace: openshift-devspaces
spec:
  devEnvironments:
    startTimeoutSeconds: 600 #timeout for the Workspace creation
    containerBuildConfiguration:
@rafaeltuelho
rafaeltuelho / devspaces-github-oauth-setup.sh
Last active August 21, 2023 22:09
Openshift DevSapces with Github OAuth integration Script.
#!/bin/bash
#for DevSpaces
#Go to https://github.com/settings/applications/new
#Enter the 'Red Hat DevSpaces Workshop' as the Application Name
#Enter the Homepage URL as 'https://devspaces.apps.YOUR-cluster-domain/'
#Enter the Authorization callback URL as 'https://devspaces.apps.YOUR-cluster-domain/api/oauth/callback'
#Remember to copy the Client Id and the Client Secret values
DEV_SPACES_NAMESPACE='openshift-devspaces'
- name: Tests playbook
hosts: localhost
gather_facts: no
vars:
num_users: 10
infra_template_object:
- name: infra
autoscale: false
total_replicas: 3
total_replicas_min: 3