rbohne@dune:~/q/openshift-examples/simple-http-server $ docker login registry.gitlab.com
Authenticating with existing credentials...
Login Succeeded
rbohne@dune:~/q/openshift-examples/simple-http-server $ docker build -t registry.gitlab.com/rbohne/openshift .
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.redhat.io/openshift4/ose-operator-registry:v4.2.0 as builder | |
ENV sdf=asdfsaa | |
COPY community-operators/openshift-pipelines-operator manifests | |
RUN /usr/bin/initializer -o /registry/bundles.db | |
#FROM scratch | |
FROM registry.redhat.io/openshift4/ose-operator-registry:v4.2.0 | |
COPY --from=builder /registry/bundles.db /bundles.db | |
COPY --from=builder /usr/bin/registry-server /registry-server | |
COPY --from=builder /usr/bin/grpc_health_probe /bin/grpc_health_probe |
oc create secret generic rbo-demo-demo-auth
--from-file=.dockerconfigjson=rbo-demo-demo-auth.json
--type=kubernetes.io/dockerconfigjson
- Install podman-manchine from https://github.com/boot2podman/machine/releases
- Install podman via homebrew
brew cask install podman
$ export PATH=$(pwd):$PATH
$ podman-machine create box
Podman machine "box" already exists
$ podman-machine start box
Starting "box"...
oc patch configmap/logging-fluentd -p "$(jq -n --arg es "$(cat output-custom-es-config.conf)" '{"data":{"output-custom-es-config.conf":$es}}')"
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: v1 | |
baseDomain: | |
compute: | |
- hyperthreading: Enabled | |
name: worker | |
replicas: 0 | |
controlPlane: | |
hyperthreading: Enabled | |
name: master | |
replicas: 3 |
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
#!/usr/bin/env bash | |
if [ $# -eq 0 ] ; then | |
echo "Usage: $0 HOSTNAME bootstrap_ignition_config_url"; | |
exit 1; | |
fi | |
HOSTNAME=${1:-bootstrap.ocp4-upi.bohne.io} | |
IGN_URL=${2} |
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
[Unit] | |
Description=Mirror registry (mirror-registry) | |
After=network.target | |
[Service] | |
Type=simple | |
TimeoutStartSec=5m | |
ExecStartPre=-/usr/bin/podman rm "mirror-registry" | |
ExecStartPre=/usr/bin/podman pull docker.io/library/registry:2 |
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://github.com/justjanne/powerline-go | |
if [ -x "$(command -v powerline-go)" ]; then | |
function _update_ps1() { | |
rc=$? | |
if [ -x "$(command -v powerline-go)" ]; then | |
PS1="$(powerline-go -error $rc -max-width 80 -newline -colorize-hostname -modules "ssh,host,user,cwd,perms,git,kube,exit" -priority "ssh,host,cwd,exit,git,kube" -modules-right "time" )" | |
else | |
PS1="\u@\h:\w $ " | |
fi | |
} |