-
Create user named
ossm-viewer
using htpasswd -
Either make the user a
cluster-reader
oc adm policy add-cluster-role-to-user cluster-reader ossm-viewer
- Or apply the following yaml
Create user named ossm-viewer
using htpasswd
Either make the user a cluster-reader
oc adm policy add-cluster-role-to-user cluster-reader ossm-viewer
First, I wanted to say our docs are great, so any of my notes here will just at best be as good -- but most likely worse than the real docs.
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 |
python manage.py shell | |
from django.core.management.utils import get_random_secret_key | |
print(get_random_secret_key()) |
#!/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 |
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='*' && \ |
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: |
#!/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" |