Skip to content

Instantly share code, notes, and snippets.

View making's full-sized avatar

Toshiaki Maki making

View GitHub Profile
+ hello-tanzu-build-1-fvt6g-build-pod › prepare
hello-tanzu-build-1-fvt6g-build-pod prepare Build reason(s): CONFIG
hello-tanzu-build-1-fvt6g-build-pod prepare CONFIG:
hello-tanzu-build-1-fvt6g-build-pod prepare resources: {}
hello-tanzu-build-1-fvt6g-build-pod prepare - source: {}
hello-tanzu-build-1-fvt6g-build-pod prepare + source:
hello-tanzu-build-1-fvt6g-build-pod prepare + blob:
hello-tanzu-build-1-fvt6g-build-pod prepare + url: http://source-controller.gitops-toolkit.svc.cluster.local./gitrepository/default/hello-tanzu/4ecc9c52d4209560e1b2f96576bab9f51cfa3661.tar.gz
hello-tanzu-build-1-fvt6g-build-pod prepare Loading secret for "https://ghcr.io" from secret "regsecret" at location "/var/build-secrets/regsecret"
+ hello-ruby-build-1-9nmz8-build-pod › prepare
hello-ruby-build-1-9nmz8-build-pod prepare Build reason(s): CONFIG
hello-ruby-build-1-9nmz8-build-pod prepare CONFIG:
hello-ruby-build-1-9nmz8-build-pod prepare resources: {}
hello-ruby-build-1-9nmz8-build-pod prepare - source: {}
hello-ruby-build-1-9nmz8-build-pod prepare + source:
hello-ruby-build-1-9nmz8-build-pod prepare + blob:
hello-ruby-build-1-9nmz8-build-pod prepare + url: http://source-controller.gitops-toolkit.svc.cluster.local./gitrepository/default/hello-ruby/b259d9f2bd6f7da6b0fc266f1d8bb6db56a199fd.tar.gz
hello-ruby-build-1-9nmz8-build-pod prepare Loading secret for "https://ghcr.io" from secret "regsecret" at location "/var/build-secrets/regsecret"
hello-ruby-build-1-9nmz8-build-pod prepare Downloading source-controller.gitops-toolkit.svc.cluster.local./gitrepository/default/hello-ruby/b259d9f2bd6f7da6b0fc266f1d8bb6db56a199fd.tar.gz...
#!/bin/bash
set -ex
ROOT_DOMAIN=$1
SSL_FILE=sslconf-${ROOT_DOMAIN}.conf
cd /certs
rm -f *.crt *.csr *.key *.srl ${SSL_FILE}
# Generate SSL Config with SANs
@making
making / README.md
Last active May 29, 2024 16:53
Use lima instead of Docker Desktop on Mac

Install

brew install lima docker
limactl start default
lima sudo apt -y install docker.io
lima sudo usermod -aG docker $USER
limactl stop default
#!/bin/bash
set -ex
ROOT_DOMAIN=$1
SSL_FILE=sslconf-${ROOT_DOMAIN}.conf
cd /certs
rm -f *.crt *.csr *.key *.srl ${SSL_FILE}
# Generate SSL Config with SANs
@making
making / README.md
Last active July 11, 2021 04:27
Install Concourse via kapp-controller

Setup kind cluster

brew install kind
curl -sL https://github.com/projectcontour/contour/raw/main/examples/kind/kind-expose-port.yaml > kind-expose-port.yaml
kind create cluster --config kind-expose-port.yaml

Install Kapp Controller

@making
making / unit-test-run.yml
Last active July 5, 2022 06:52
unit-test (Tekton)
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: unit-test-run-
spec:
pipelineRef:
name: unit-test
workspaces:
- name: cache
persistentVolumeClaim:
@making
making / unit-test.yml
Last active July 8, 2021 14:35
unit test (Concourse)
# fly -t demo set-pipeline -p unit-test -c unit-test.yml
# fly -t demo unpause-pipeline -p unit-test
# fly -t demo trigger-job -j unit-test/unit-test --watch
resources:
- name: repo
type: git
source:
uri: https://github.com/making/hello-servlet.git
jobs:
@making
making / app-config.yml
Created February 28, 2021 09:49
参照するConfigMapのmd5値をannotationに追加したい
apiVersion: v1
kind: ConfigMap
metadata:
name: app-config
data:
SPECIAL_LEVEL: very
SPECIAL_TYPE: charm
@making
making / input.yml
Last active February 28, 2021 05:38
ConfigMapのdata中のYAMLに対してoverlayを適用したい
apiVersion: v1
kind: ConfigMap
metadata:
name: demo
data:
demo.yml: |
foo: 100
bar: 200