#Jekyll Markdown Quick Reference
####Write in simply awesome markdown
layout: post
title: Markdown Style Guide
---| # ~/.config/starship.toml | |
| [battery] | |
| full_symbol = "🔋" | |
| charging_symbol = "🔌" | |
| discharging_symbol = "⚡" | |
| [[battery.display]] | |
| threshold = 30 | |
| style = "bold red" |
| //installation in k8s | |
| kubectl create namespace argocd | |
| //deploy manifest | |
| kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml | |
| //patch to type LoadBalancer | |
| kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}' | |
| //retreive password |
#Jekyll Markdown Quick Reference
####Write in simply awesome markdown
layout: post
title: Markdown Style Guide
---| Sample BuildConfig Pipeline | |
| kind: "BuildConfig" | |
| apiVersion: build.openshift.io/v1 | |
| metadata: | |
| name: "pipeline-demo" | |
| spec: | |
| triggers: | |
| - github: | |
| secret: 5Mlic4Le | |
| type: GitHub |
| Sample BuildConfig Pipeline | |
| kind: "BuildConfig" | |
| apiVersion: build.openshift.io/v1 | |
| metadata: | |
| name: "pipeline-demo" | |
| spec: | |
| triggers: | |
| - github: | |
| secret: 5Mlic4Le | |
| type: GitHub |
| oc create secret docker-registry <secret_name> --docker-server=registry.redhat.io --docker-username=<username> --docker-password=<password> | |
| oc create -f <file_name>.yaml | |
| oc secrets link default <secret_name> --for=pull | |
| oc secrets link builder <secret_name> --for=pull |
| mvn io.quarkus:quarkus-maven-plugin:1.4.2.Final:create \ | |
| -DprojectGroupId=my-groupId \ | |
| -DprojectArtifactId=my-artifactId \ | |
| -DprojectVersion=my-version \ | |
| -DclassName="org.my.group.MyResource" |
| mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate \ | |
| -DarchetypeCatalog=https://maven.repository.redhat.com/ga/io/fabric8/archetypes/archetypes-catalog/2.2.0.fuse-740017-redhat-00003/archetypes-catalog-2.2.0.fuse-740017-redhat-00003-archetype-catalog.xml \ | |
| -DarchetypeGroupId=org.jboss.fuse.fis.archetypes \ | |
| -DarchetypeArtifactId=spring-boot-camel-xml-archetype \ | |
| -DarchetypeVersion=2.2.0.fuse-740017-redhat-00003 |
yum -y install java-1.8.0-openjdk-devel
wget https://www-eu.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
tar xzf apache-maven-3.6.3-bin.tar.gz
mv apache-maven-3.6.3 /opt/maven
cat << EOF >> /etc/profile.d/maven.sh
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64