$ docker run --user root --rm -it --name sso74 -P --entrypoint "/bin/bash" registry.redhat.io/rh-sso-7/sso74-openshift-rhel8:7.4$ mkdir tmp-imagem-file && cd $_
$ docker cp sso74:/opt/eap/standalone/configuration/standalone-openshift.xml .| /** | |
| * @param args.FOLDER_YML | |
| * @param args.OCP_KIND < configmap, secret > | |
| * @return | |
| */ | |
| def manageYML(Map args) { | |
| def configMapList = findFiles(glob: "${args.FOLDER_YML}") | |
| echos "[${args.OCP_KIND}][found]: ${configMapList}" | |
| configMapList.each { f -> |
$ docker run --user root --rm -it --name sso74 -P --entrypoint "/bin/bash" registry.redhat.io/rh-sso-7/sso74-openshift-rhel8:7.4$ mkdir tmp-imagem-file && cd $_
$ docker cp sso74:/opt/eap/standalone/configuration/standalone-openshift.xml .Adicionar na documentação:
| import java.util.Objects; | |
| class Scratch { | |
| public static void main(String[] args) { | |
| String s = null; | |
| try { | |
| if (!s.equals("XXX")) { | |
| System.out.println("[WRONG-TESTING] NOT EXECUTED!"); | |
| } |
| v_values=$(oc get pods --all-namespaces --field-selector status.phase==Running -o wide | awk 'FNR > 1 {printf $1;printf ";";printf $2;printf ";";printf $8;printf "\n"}' ) | |
| for v_pod_and_node in $(echo $v_values); do | |
| v_namespace=$(echo $v_pod_and_node | awk -F ";" '{print $1}') | |
| v_pod=$(echo $v_pod_and_node | awk -F ";" '{print $2}') | |
| v_node=$(echo $v_pod_and_node | awk -F ";" '{print $3}') | |
| oc -n $v_namespace rsh $v_pod /bin/sh -i -c 'printf "$(date '+%Y%m%d%H%M%S')"' | |
| printf ";$v_pod;$v_namespace;$v_node\n" | |
| done |
| FROM alpine:latest | |
| #FROM alpine:3.9 | |
| MAINTAINER Renato Felix | |
| ENV IOZONE_VERSION 3.489 | |
| ENV IOZONE_URL http://www.iozone.org/src/current/iozone3_490.tar | |
| RUN apk --update upgrade && \ | |
| apk add --no-cache --virtual=temporary iperf3 curl gcc make build-base && \ |
| apiVersion: build.openshift.io/v1 | |
| kind: BuildConfig | |
| metadata: | |
| labels: | |
| name: my-first-pipeline-maven-version | |
| name: my-first-pipeline-maven-version | |
| spec: | |
| source: | |
| type: None | |
| strategy: |
| package com.dinuth.keycloakspringbootmicroservice.config; | |
| import org.keycloak.adapters.KeycloakConfigResolver; | |
| import org.keycloak.adapters.springboot.KeycloakSpringBootConfigResolver; | |
| import org.keycloak.adapters.springsecurity.authentication.KeycloakAuthenticationProvider; | |
| import org.keycloak.adapters.springsecurity.config.KeycloakWebSecurityConfigurerAdapter; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
| <offline>false</offline> | |
| <proxies> | |
| <!-- ### configured http proxy ### --> | |
| </proxies> |
| brew tap mike-engel/jwt-cli | |
| brew install jwt-cli | |
| brew install jq | |
| TOKEN=$(curl <TOKEN-ENDPOINT> | jq -r .token) | |
| jwt decode $TOKEN |