Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Charles Moulliard cmoulliard

🏠
Working from home
View GitHub Profile
View gist:28d61d6d16233b720e133f4d7fad48cb
apiVersion: v1
kind: Pod
metadata:
annotations:
kpack.io/build: cert
labels:
image.kpack.io/buildNumber: "1"
image.kpack.io/image: tutorial-image
image.kpack.io/imageGeneration: "1"
kpack.io/build: tutorial-image-build-1
View gist:e15a822e75b5f5fe715dff5286340b2c
REGISTRY_ADDRESS=kube-registry.infra.svc
REGISTRY_PROTOCOL=https
REGISTRY_PREFIX=cmoulliard
USER=admin
PASSWORD=snowdrop
echo "IMPORTANT: Copy the self signed cert here please using the name : server.crt !!!!! before to launch the script"
pushd cert-injection-webhook
pack build $REGISTRY_PREFIX/my-setup-ca-certs \
View gist:276cc8162169bd086ea5d0be5a5a1ab5
apiVersion: v1
kind: Pod
metadata:
annotations:
image.kpack.io/buildChanges: '[{"reason":"CONFIG","old":{"resources":{},"source":{}},"new":{"resources":{},"source":{"git":{"url":"https://github.com/spring-projects/spring-petclinic","revision":"82cb521d636b282340378d80a6307a08e3d4a4c4"}}}}]'
image.kpack.io/reason: CONFIG
kpack.io/build: cert
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"kpack.io/v1alpha1","kind":"Image","metadata":{"annotations":{"kpack.io/build":"cert"},"name":"tutorial-image","namespace":"demo"},"spec":{"builder":{"kind":"Builder","name":"my-builder"},"serviceAccount":"tutorial-service-account","source":{"git":{"revision":"82cb521d636b282340378d80a6307a08e3d4a4c4","url":"https://github.com/spring-projects/spring-petclinic"}},"tag":":5000/tutorial"}}
creationTimestamp: "2021-03-11T07:58:13Z"
View registry.yml
apiVersion: v1
items:
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
meta.helm.sh/release-name: registry
meta.helm.sh/release-namespace: default
creationTimestamp: "2021-03-05T18:12:50Z"
View out.txt
REQUEST: [2021-03-05T11:53:01+01:00]
GET / HTTP/1.1
Host: api.95.217.159.244.nip.io
Accept: application/json
User-Agent: cf/7.2.0+be4a5ce2b.2020-12-10 (go1.13.15; amd64 linux)
RESPONSE: [2021-03-05T11:53:01+01:00]
HTTP/1.1 200 OK
Content-Length: 1176
Content-Type: application/json;charset=utf-8
View keybase.md

Keybase proof

I hereby claim:

  • I am cmoulliard on github.
  • I am cmoulliard (https://keybase.io/cmoulliard) on keybase.
  • I have a public key ASBxVgk7VfQF7KRSnJ934xrR_D_WNSD7pKi_ITCrBEnRnwo

To claim this, I am signing this object:

View gist:5cc8640d386004c6159a24965b88b286
Started by user unknown or anonymous
Running as SYSTEM
Building in workspace /Users/cmoullia/temp/jenkins/local/workspace/check-bom-dependencies
The recommended git tool is: NONE
No credentials specified
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/snowdrop/spring-boot-bom # timeout=10
Fetching upstream changes from https://github.com/snowdrop/spring-boot-bom
> git --version # timeout=10
View report.txt
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.72-v7l+ (dom@buildbot) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #1356 SMP Thu Oct 22 13:57:51 BST 2020
[ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.2
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000001ec00000, size 256 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] On node 0 totalpages: 1012736
@cmoulliard
cmoulliard / kind-reg-ingress.sh
Last active Oct 22, 2020
Bash script to create a kind + container registry + ingress cluster
View kind-reg-ingress.sh
#!/bin/sh
set -o errexit
TO_BE_DELETED=${1:-false}
CLUSTER_NAME=${2:-devcluster}
REG_NAME='kind-registry'
# Delete clusterif requested
if [ "$TO_BE_DELETED" = true ] ; then
kind delete clusters ${CLUSTER_NAME}
View gist:9501aa79a9cb87d2f13bd828856f09da
docker run -e JIRA_USERNAME=test -e JIRA_PASSWORD=test -e GITHUB_TOKEN=test -e JIRA_USERS=TEST --rm cmoulliard/snowdrop-bot:0.1-SNAPSHOT
exec java -Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager -javaagent:/opt/agent-bond/agent-bond.jar=jmx_exporter{{9779:/opt/agent-bond/jmx_exporter_config.yml}} -XX:+ExitOnOutOfMemoryError -cp . -jar /deployments/app.jar
__ ____ __ _____ ___ __ ____ ______
--/ __ \/ / / / _ | / _ \/ //_/ / / / __/
-/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2020-07-16 08:20:10,848 INFO [io.agr.pool] (main) Datasource '<default>': Initial size smaller than min. Connections will be created when necessary
org.h2.message.DbException: Log file error: "/z/var/snowdrop-bot/data/prod/snowdrop-bot/db/bot.db.trace.db", cause: "org.h2.message.DbException: Error while creating file ""/z"" [90062-197]" [90034-197]
org.h2.message.DbException: Log file error: "/z/var/snowdrop-bot/data/prod/snowdrop-bot/db/bot.db