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 registry.access.redhat.com/ubi9/python-311:1-52.1712567218 | |
# Build args mainly for asset compilation | |
ARG DJANGO_SECRET_KEY | |
ARG REDIS_URL | |
ARG DJANGO_ADMIN_URL | |
ARG SPARKPOST_API_KEY | |
ARG CARE_OFFICE_PASSWORD | |
ARG DJANGO_AWS_ACCESS_KEY_ID | |
ARG DJANGO_AWS_SECRET_ACCESS_KEY |
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
python manage.py shell | |
from django.core.management.utils import get_random_secret_key | |
print(get_random_secret_key()) |
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 | |
function help() { | |
echo "This script finds all the CPU for all worker nodes (ignoring them if they are also infra)" | |
echo | |
echo "Syntax: nodes.sh [-g|h]" | |
echo "options:" | |
echo "h Print this help." | |
echo "o Obfuscate node names." | |
echo |
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 |