Skip to content

Instantly share code, notes, and snippets.

View spotlesstofu's full-sized avatar

Camilla Conte spotlesstofu

View GitHub Profile
@spotlesstofu
spotlesstofu / oc-build-image.md
Created November 29, 2022 15:47
Simplest way to Build a Container Image (Dockerfile) on OpenShift

Command:

cat Dockerfile | oc new-build --dockerfile - --to-docker=true --to=quay.io/spotlesstofu/curl-jq --name=build-image-curl-jq

Output:

--> Found container image 49176f1 (6 days old) from docker.io for "docker.io/library/alpine:latest"

 * An image stream tag will be created as "alpine:latest" that will track the source image
@spotlesstofu
spotlesstofu / prometheus.yaml
Created January 14, 2022 09:30
Run Prometheus on Kubernetes
# ConfigMap
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-app-conf
labels:
name: prometheus-app-conf
data:
prometheus.yml: |-
@spotlesstofu
spotlesstofu / perror
Created December 13, 2021 10:55 — forked from ryo1kato/perror
perror - bash implementation
#!/bin/bash
errno_headers="/usr/include/asm-generic/errno-base.h /usr/include/asm-generic/errno.h"
print_usage () {
echo "Usage: ${0##*/} ERRNO"
}
case $1 in