-
Install http://tmate.io
-
Configure
~/.tmux.confcurl -sSL -o ~/.tmux.conf https://gist.github.com/gullitmiranda/e631f14a66a8ff658eb7/raw/fc3cfb7cd2ef1cc6e5d0de66b1e93b68652de866/tmux.conf -
Start
tmateserver
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 | |
| NAMESPACE=your_namespace_on_quay | |
| TAG=the_tag | |
| # https://quay.io/organization/your_namespace_on_quay?tab=applications | |
| ACCESS_TOKEN=xxxxx | |
| for repository in $(curl -s -X GET -H "Authorization: Bearer $ACCESS_TOKEN" "https://quay.io/api/v1/repository?namespace=$NAMESPACE" | jq -r '.repositories[].name' | sort); do | |
| curl -s -X DELETE -H "Authorization: Bearer $ACCESS_TOKEN" https://quay.io/api/v1/repository/$NAMESPACE/$repository/tag/$TAG |
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
| images/ | |
| layers/ | |
| node_modules/ | |
| .cache/ | |
| manifests/ |
- https://docs.openshift.com/container-platform/4.3/operators/olm-restricted-networks.html
- docs bug to add procedure for creating the CatalogSource manually https://bugzilla.redhat.com/show_bug.cgi?id=1796464
- using
ocfrom 4.4 as 4.3 apparently has a bug in theoc adm catalogcommand(s)
oc patch OperatorHub cluster --type json \
-p '[{"op": "add", "path": "/spec/disableAllDefaultSources", "value": true}]'
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
| ### | |
| # Create mirror repo following disconnected instructions | |
| ### | |
| # create dir | |
| mkdir -p ~/registry1/{auth,certs,data} | |
| # create cert | |
| openssl req -newkey rsa:4096 -nodes -sha256 -keyout ~/registry1/certs/domain.key -x509 -days 365 -out ~/registry1/certs/domain.crt |
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 | |
| TMATE_URL=https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz | |
| VERSION_FILENAME=$(basename -s .tar.xz "${TMATE_URL}") | |
| DEPLOY_DIR=/opt/tmate | |
| sudo mkdir -p /opt/tmate | |
| cd /opt/tmate | |
| sudo curl -RLOJ "${TMATE_URL}" | |
| sudo tar -xJvf "${VERSION_FILENAME}.tar.xz" | |
| sudo ln -sf "${DEPLOY_DIR}/${VERSION_FILENAME}/tmate" "/usr/local/bin/tmate" |