Skip to content

Instantly share code, notes, and snippets.

Nick Boldt nickboldt

Block or report user

Report or block nickboldt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nickboldt
nickboldt / HOWTO.CRW2.openshift.txt
Last active Oct 31, 2019
Quick guide for how to run CRW 2 on Openshift
View HOWTO.CRW2.openshift.txt
1. download and install oc binary - https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.2.2/ get the client tarball
2. download and install chectl binary - https://github.com/che-incubator/chectl/releases get the tarball
3. get credentials for your cluster (CRC, OCP 4). Can also use minishift or OCP 3.11
4. log into your cluster
5. use chectl (eventually this will be crwctl once it's built!) to deploy to your cluster. Note that chectl will successfully deploy the operator, but will timeout waiting for other components to return success. This timeout/bad error will be fixed in the crwctl fork, but does NOT actually prevent deployment (it just looks that way!) 
@nickboldt
nickboldt / get.image.properties.in.che.properties.sh
Created Oct 7, 2019
get.image.properties.in.che.properties.sh
View get.image.properties.in.che.properties.sh
wget https://raw.githubusercontent.com/eclipse/che/master/assembly/assembly-wsmaster-war/src/main/webapp/WEB-INF/classes/che/che.properties -q -O /tmp/che.properties
cat /tmp/che.properties | grep -v "^#\|events" | grep image; echo "";
for d in $(cat /tmp/che.properties | grep -v "^#\|events" | grep image); do PROP=${d%=*}; PROP=$(echo $PROP | tr "[a-z]" "[A-Z]" | sed -e "s@_@__@g" -e "s@\.@_@g"); VAL=${d#*=}; echo " $PROP:'$VAL'"; done
che.workspace.sidecar.image_pull_policy=Always
che.docker.always_pull_image=true
che.infra.kubernetes.pvc.jobs.image=centos:centos7
che.workspace.plugin_broker.init.image=eclipse/che-init-plugin-broker:v0.21
che.workspace.plugin_broker.unified.image=eclipse/che-unified-plugin-broker:v0.21
che.server.secure_exposer.jwtproxy.image=quay.io/eclipse/che-jwtproxy:dbd0578
@nickboldt
nickboldt / get.latest.image.tags.skopeo.sh
Created Oct 7, 2019
get.latest.image.tags.skopeo.sh
View get.latest.image.tags.skopeo.sh
for d in \
operator server devfileregistry pluginregistry pluginbrokerinit pluginbroker machineexec \
jwtproxy theia-dev theia; do \
url=quay.io/crw/${d}-rhel8; echo -n "http://${url}:"; \
skopeo inspect docker://${url} | yq .RepoTags | egrep -v "\[|\]|latest" | tr -d "\" " | sort -V | tail -1;
done
for d in cpp dotnet golang java node php python; do
url=quay.io/crw/stacks-${d}-rhel8; echo -n "http://${url}:"; \
skopeo inspect docker://${url} | yq .RepoTags | egrep -v "\[|\]|latest" | tr -d "\" " | sort -V | tail -1;
View Che 7 Air Gap HOWTO.adoc

Che 7 Air Gap HOW TO

1. Pull all images, push to internal quay/artifactory

```
docker.io/eclipse/che-server:latest (or :nightly: or :7.1.0)

docker.io/eclipse/che-theia-dev:next (or :7.0.0-next)
@nickboldt
nickboldt / HOWTO.Che7-in-CRW1.2-OCP4.adoc
Last active Aug 13, 2019
Che 7 IDE in CRW 1.2 - RHDEVDOCS-1249
View HOWTO.Che7-in-CRW1.2-OCP4.adoc
  1. Deploy CRW 1.2 to OCP using OperatorHub.

  2. Or, use the Operator-based deploy script:

    git clone https://github.com/redhat-developer/codeready-workspaces-deprecated && cd codeready-workspaces-deprecated/operator-installer && git checkout 6.19.x
    ./deploy.sh -d --server-image=quay.io/crw/server-rhel8 -v=1.2-35 --operator-image=quay.io/crw/operator-rhel8:1.2-13 --verbose -p=crw-che7d
@nickboldt
nickboldt / HOWTO.airgap.plugin.registry.adoc
Last active Aug 8, 2019
che plugin registry with icons and plugins self-contained
View HOWTO.airgap.plugin.registry.adoc

HOWTO

b) don’t have the correct route URL or IP in the pod w/ the index.json. Need to inject the env var before applying the 0.0.0.0 transform

start up minishift and log in

minishift start
oc login 192.168.99.112:8443 -u developer -p 123

rebuild plugin reg from latest changes

@nickboldt
nickboldt / che-operator.pr.review.sh
Created Jul 23, 2019
che-operator.pr.review.sh
View che-operator.pr.review.sh
oldSHA=$(git rev-parse --short=4 HEAD~1)
newSHA=$(git rev-parse --short=4 HEAD~0)
oldk8sTS=1563804656
newk8sTS=1563883405
oldOSTS=1563804657
newOSTS=1563883406
git diff \
@nickboldt
nickboldt / pre-release-installation-test-against-OCP4.x-with-OS-oauth-CRW-202.bash
Created Jul 16, 2019
pre-release-installation-test-against-OCP4.x-with-OS-oauth-CRW-202 Jenkins config
View pre-release-installation-test-against-OCP4.x-with-OS-oauth-CRW-202.bash
set -x
OPENSHIFT_URL=************
CHE_OPENSHIFT_PROJECT="j$(echo ${JOB_NAME} | md5sum | tr -d "[:punct:][:space:]")-${BUILD_NUMBER}b"
CRW_HOST=codeready-${CHE_OPENSHIFT_PROJECT}.apps.crw.codereadyqe.com
OPENSHIFT_USERNAME=*******
OPENSHIFT_PASSWORD="**********"
QUAY_USER="nickboldt"
QUAY_REGISTRY="quay.io/nickboldt"
QUAY_TOKEN="***********"
View gist:ac7421a383ea573e83403ef8a356ff6a
REG_NAMESPACE=redhat-operators
OPERATOR_NAME=codeready-workspaces
cat << EOYAML > ${WORKSPACE}/codeready-workspaces-operator.yaml
apiVersion: operators.coreos.com/v1
kind: OperatorSource
metadata:
name: ${OPERATOR_NAME}
namespace: openshift-marketplace
spec:
You can’t perform that action at this time.