Skip to content

Instantly share code, notes, and snippets.

View kameshsampath's full-sized avatar

Kamesh Sampath kameshsampath

View GitHub Profile
@kameshsampath
kameshsampath / stream_profile.json
Last active August 24, 2021 14:34
VSCode profile for streaming
{
"files.exclude": {
"**/.classpath": true,
"**/.factorypath": true,
"**/.idea": true,
"**/.iml": true,
"**/.mvn": true,
"**/.project": true,
"**/.settings": true,
"**/.vagrant": true,
#!/usr/bin/env ansible-playbook -c local
---
- hosts: localhost
vars:
dest_dir: "{{ansible_env.HOME}}/openshift/bin"
tasks:
- name: OS
debug: msg="OS Family is {{ansible_os_family}}"
- name: Make sure destination exists
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: myboot
spec:
template:
spec:
containers:
- image: quay.io/rhdevelopers/myboot:v2
livenessProbe:
apiVersion: v1
kind: Service
metadata:
name: myboot
labels:
app: myboot
spec:
ports:
- name: http
port: 8080
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: myboot
name: myboot
spec:
replicas: 1
selector:
matchLabels:
@kameshsampath
kameshsampath / minikube_stdlogs.txt
Created April 16, 2020 06:17
minikube podman run error logs
==> CRI-O <==
-- Logs begin at Thu 2020-04-16 06:07:16 UTC, end at Thu 2020-04-16 06:14:19 UTC. --
Apr 16 06:14:15 podman-node crio[1923]: time="2020-04-16 06:14:15.151077104Z" level=debug msg="response: &ListPodSandboxResponse{Items:[]*PodSandbox{&PodSandbox{Id:45cf273a5153ed11df1a8d7a52253fb179f07f19ff8f96bbad3d4893239d383c,Metadata:&PodSandboxMetadata{Name:storage-provisioner,Uid:61fcf0d5-42b1-495c-ac5c-6b6005a85217,Namespace:kube-system,Attempt:0,},State:SANDBOX_READY,CreatedAt:1587017348241562752,Labels:map[string]string{addonmanager.kubernetes.io/mode: Reconcile,integration-test: storage-provisioner,io.kubernetes.container.name: POD,io.kubernetes.pod.name: storage-provisioner,io.kubernetes.pod.namespace: kube-system,io.kubernetes.pod.uid: 61fcf0d5-42b1-495c-ac5c-6b6005a85217,},Annotations:map[string]string{kubectl.kubernetes.io/last-applied-configuration: {\"apiVersion\":\"v1\",\"kind\":\"Pod\",\"metadata\":{\"annotations\":{},\"labels\":{\"addonmanager.kubernetes.io/mode\":\"Reconcile\",\"integration-t
%dev.quarkus.datasource.url=jdbc:mariadb://192.168.99.112:31333/demodb
%prod.quarkus.datasource.url=jdbc:mariadb://mariadb:3306/demodb
quarkus.datasource.driver=org.mariadb.jdbc.MariaDbDataSource
quarkus.hibernate-orm.dialect=org.hibernate.dialect.MariaDB103Dialect
quarkus.datasource.username=demo
quarkus.datasource.password=password
quarkus.hibernate-orm.database.generation=drop-and-create
quarkus.hibernate-orm.log.sql=true
@kameshsampath
kameshsampath / docker-build-push.sh
Last active February 5, 2020 06:10
A script to use maven project coordinates in linux container image build
#!/bin/bash
# do your maven build here
# get the build artifact name
ARTIFACT_NAME=$(mvn org.apache.maven.plugins:maven-help-plugin:3.1.1:evaluate -Dexpression=project.build.finalName -q -DforceStdout)
ARTIFACT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:3.1.1:evaluate -Dexpression=project.version -q -DforceStdout)
IMAGE_NAME=${APP_NAME:-"dev.local/example/$ARTIFACT_NAME:$ARTIFACT_VERSION"}
==> Docker <==
-- Logs begin at Tue 2020-01-14 17:41:32 UTC, end at Tue 2020-01-14 17:44:33 UTC. --
Jan 14 17:42:20 knative dockerd[2006]: time="2020-01-14T17:42:20.097921453Z" level=info msg="shim containerd-shim started" address="/containerd-shim/moby/6d6fbda74600f34c8f7c8bfa384a659e8a369aa4c00cf650ae89acaa262e7d00/shim.sock" debug=false pid=6980
Jan 14 17:42:20 knative dockerd[2006]: time="2020-01-14T17:42:20.314972238Z" level=info msg="shim containerd-shim started" address="/containerd-shim/moby/0adb09986eb7bc84c540bcc948cb0cc891a7f63b1ca93c99810401c85f1a2cb1/shim.sock" debug=false pid=7114
Jan 14 17:42:20 knative dockerd[2006]: time="2020-01-14T17:42:20.322412868Z" level=info msg="shim containerd-shim started" address="/containerd-shim/moby/3a3eb1723c45efa042e707be766b87322620c47ecba3c1043d615f55a1c346cb/shim.sock" debug=false pid=7145
Jan 14 17:42:20 knative dockerd[2006]: time="2020-01-14T17:42:20.446113394Z" level=info msg="shim containerd-shim started" address="/containerd-shim/moby/f4ed9a00d42eebf37
apiVersion: sources.eventing.knative.dev/v1alpha1
kind: CamelSource
metadata:
name: timed-greeter
spec:
integration:
dependencies:
- camel:log
source: |-
from("timer:tick?period=10s")