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
openapi: "3.0.0" | |
info: | |
version: 1.0.3 | |
title: Github 02 | |
description: "some description 02.4" | |
license: | |
name: MIT | |
servers: | |
- url: http://t1.hub.io/v2 | |
paths: |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: busybox | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: test |
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/ubi8/ubi:8.10 | |
RUN dnf install -y jq \ | |
&& jq -V |
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/v1 | |
kind: Pipeline | |
metadata: | |
name: pipeline-agnostic | |
spec: | |
params: | |
- name: APP_NAME | |
type: string | |
default: 'react-openshift-example' |
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
{ | |
"actions": [ | |
{ | |
"type": "command", | |
"label": "Send to VSCode", | |
"command_line": "code ${PWD}", | |
"use_shell": true, | |
"cwd": "%f", | |
"max_items": 1, | |
"filetypes": ["directory"] |
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
--- | |
# Senha do banco de dados | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: database-secret | |
type: Opaque | |
stringData: | |
username: 'my-username' | |
password: 'my-pass' |
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
crc config set consent-telemetry no | |
crc config set cpus 12 | |
crc config set memory 30971 | |
crc config set kubeadmin-password xxxx |
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
WILDCARD_DOMAIN=$(oc whoami --show-console 2> /dev/null | cut -d '.' -f2- | cut -d ':' -f1) | |
NAME_KEYCOAK=admin-rhbk | |
SECRET_NAME=keycloak-admin-tls-secret | |
openssl req -subj "/CN=${NAME_KEYCOAK}.${WILDCARD_DOMAIN}/O=Test RHBK./C=BR" -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem | |
oc create secret tls ${SECRET_NAME} --cert certificate.pem --key key.pem | |
oc create route passthrough rhbk-dev-admin --service=rhbk-dev-service --port=https --hostname="${NAME_KEYCOAK}.${WILDCARD_DOMAIN}" | |
echo "created secret ${SECRET_NAME} for host: https://${NAME_KEYCOAK}.${WILDCARD_DOMAIN}" |
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
URL_TMP=$(crc version 2>&1 | grep -oP 'has been published on\s\K.*') | |
TAR_FILE=~/tmp/crc-linux-amd64.tar.xz | |
OUTPUT_FILE=$(which crc) | |
if [ ! -z "$URL_TMP" ] | |
then | |
URL=${URL_TMP::-1} | |
echo "Downloading: ${URL}" | |
curl -L -o $TAR_FILE $URL |
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
openapi: 3.1.0 | |
info: | |
title: CIAM | |
contact: {} | |
version: '1.0' | |
jsonSchemaDialect: https://spec.openapis.org/oas/3.1/dialect/base | |
servers: | |
- url: https://develop.example.com | |
variables: {} | |
- url: https://stage.example.com |
NewerOlder