Skip to content

Instantly share code, notes, and snippets.

View rhopp's full-sized avatar

Radim Hopp rhopp

  • Red Hat
View GitHub Profile
@rhopp
rhopp / devfilePureEAP.yaml
Last active October 29, 2019 12:07
pure java eap image devfile
---
apiVersion: 1.0.0
metadata:
generateName: java-eap-maven-
projects:
-
name: kitchensink-example
source:
type: git
location: "https://github.com/che-samples/kitchensink-example"
#!/bin/bash
## This script expects oc to be logged in into proper cluster, where you want the root cert to be imported from
oc get secret router-ca -n openshift-ingress-operator -o jsonpath="{.data.tls\.crt}" | base64 -d > ca.crt
certutil -d sql:$HOME/.pki/nssdb -A -t CT,C,C -n $(openssl x509 -in ca.crt -text |grep Issuer| grep -o 'ingress-operator@.*') -i ca.crt
rm ca.crt
#!/bin/bash
CLUSTER_NAME=<cluster_name - for example 'rhopp-qa'>
HOSTED_ZONE_ID=Z3URY6TWQ91KVV
# aws route53 list-resource-record-sets --hosted-zone-id ${HOSTED_ZONE_ID} --output json > allRecordSets.json
jq ".ResourceRecordSets[] | select(.Name | contains(\"api.${CLUSTER_NAME}.devcluster.openshift.com\"))" allRecordSets.json > apiRecordSet.json
jq ".ResourceRecordSets[] | select(.Name | contains(\"\\\\052.apps.${CLUSTER_NAME}.devcluster.openshift.com\"))" allRecordSets.json > appsRecordSet.json
apiVersion: org.eclipse.che/v1
kind: CheCluster
metadata:
name: eclipse-che
spec:
server:
# server image used in Che deployment
cheImage: 'quay.io/crw/server-rhel8'
# tag of an image used in Che deployment
cheImageTag: '2.0-377'
apiVersion: org.eclipse.che/v1
kind: CheCluster
metadata:
name: codeready-workspaces
spec:
server:
airGapContainerRegistryHostname: 'image-registry.openshift-image-registry.svc:5000'
airGapContainerRegistryOrganization: 'openshift'
# server image used in Che deployment
cheImage: ''
apiVersion: org.eclipse.che/v1
kind: CheCluster
metadata:
creationTimestamp: '2019-11-22T13:39:30Z'
generation: 13
name: codeready-workspaces
namespace: crw2-upstream-tests-pipeline
resourceVersion: '809051'
selfLink: >-
/apis/org.eclipse.che/v1/namespaces/crw2-upstream-tests-pipeline/checlusters/codeready-workspaces
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Mocha Tests",
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "test-operatorhub-installation",
"problemMatcher": [],
"options": {
metadata:
name: wksp-kjuo
projects:
- name: java-web-spring
source:
location: 'https://github.com/spring-projects/spring-petclinic.git'
type: git
branch: master
attributes:
persistVolumes: 'false'
---
apiVersion: 1.0.0
metadata:
generateName: nodejs-
projects:
-
name: nodejs-web-app
source:
type: git
location: "https://github.com/eclipse/che.git"