This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM quay.io/devfile/universal-developer-image:latest | |
# The following commands require root | |
USER 0 | |
# Install a recent version of ruby | |
ENV RUBY_VERSION 3.1.2 | |
RUN dnf -y update && \ | |
dnf -y install rbenv ruby-build sqlite && \ | |
dnf -y clean all --enablerepo='*' && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
schemaVersion: 2.2.0 | |
metadata: | |
name: rails-blog | |
attributes: | |
controller.devfile.io/devworkspace-config: | |
name: special-workspaces-config | |
namespace: l0rd-che | |
components: | |
- name: bundle-volume | |
volume: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# taken from: https://brad-simonin.medium.com/create-an-aws-vpc-and-subnet-using-the-aws-cli-and-bash-a92af4d2e54b | |
export AWS_ACCESS_KEY_ID=something | |
export AWS_SECRET_ACCESS_KEY=something | |
export AWS_DEFAULT_REGION=us-east-1 | |
availabilityZone="us-east-1a" | |
name="Something" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "Simple Cat API Overview", | |
"version": "v2" | |
}, | |
"host": "cat-product-3scale-apicast-staging.apps.raptor.redhat.technology", | |
"schemes": [ | |
"https" | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: tekton.dev/v1beta1 | |
kind: Task | |
metadata: | |
name: dotnet-build-publish | |
namespace: dotnet | |
spec: | |
steps: | |
- env: | |
- name: WORKSPACE_SSL_CA_DIRECTORY_BOUND | |
value: $(workspaces.ssl-ca-directory.bound) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Taken from: https://www.redhat.com/architect/openshift-usage-metrics | |
for project in `oc get project|grep -v NAME`; \ | |
do echo $project; \ | |
oc project $project 2> /dev/null; \ | |
oc adm top pods; \ | |
done; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.redhat.com/sysadmin/openshift-terminating-state |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# create namespace | |
oc new-project vista | |
# sa | |
# can use default, this is convenient but not best practice | |
# oc adm policy add-scc-to-user anyuid -z default | |
oc create sa root | |
oc adm policy add-scc-to-user privileged -z root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# delete config map | |
oc delete configmap custom-ca -n openshift-config | |
# re-create it | |
oc create configmap custom-ca --from-file=ca-bundle.crt=</path/to/example-ca.crt> -n openshift-config | |
# make sure config map is being used | |
oc patch proxy/cluster --type=merge --patch='{"spec":{"trustedCA":{"name":"custom-ca"}}}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# create admin and user1 with password `openshift` | |
# -c for file, -n just for console | |
# -B for bcrypt | |
# -b for allowing password in command | |
htpasswd -c -B -b ./openshift.htpasswd admin openshift | |
htpasswd -B -b ./openshift.htpasswd user1 openshift | |
# add secret with username/passwords |