Skip to content

Instantly share code, notes, and snippets.

View making's full-sized avatar

Toshiaki Maki making

View GitHub Profile
#!/bin/bash
set -e
NAMESPACE=$1
SERVICE_ACCOUNT=$2
SECRET_NAME=${SERVICE_ACCOUNT}-token
cat <<EOF | kubectl apply -n ${NAMESPACE} -f - > /dev/null
apiVersion: v1
kind: Secret
metadata:
apiVersion: v1
kind: Secret
metadata:
name: tap-gui-db
namespace: tap-install
type: Opaque
stringData:
tap-gui-db.yml: |
#@ load("@ytt:overlay", "overlay")
#@overlay/match by=overlay.subset({"kind":"Deployment","metadata":{"name":"server"}})
@making
making / Dockerfile
Last active December 1, 2023 07:09
Dockerfile for Spring Boot + CRaC
FROM azul/zulu-openjdk:21-jdk-crac-latest as builder
WORKDIR application
ADD ./.mvn .mvn/
ADD ./mvnw mvnw
ADD ./pom.xml pom.xml
ADD ./src src/
ADD ./.git .git/
RUN ./mvnw -V clean package -DskipTests --no-transfer-progress && \
cp target/*.jar application.jar && \
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@making
making / Dockerfile
Last active August 14, 2023 12:43
wasm-builder
FROM ubuntu:jammy
USER root
RUN apt-get update -qq && \
apt-get install -y -qq wget curl build-essential && \
rm -rf /var/lib/apt/lists/*
RUN wget -q https://github.com/tinygo-org/tinygo/releases/download/v0.28.1/tinygo_0.28.1_amd64.deb && \
dpkg -i tinygo_0.28.1_amd64.deb && \
rm tinygo_0.28.1_amd64.deb
@making
making / unit-test-pipeline-cache.yaml
Last active July 5, 2022 07:03
TestContainers on Tekton (privileged required)
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: unit-test-pipeline-cache
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
@making
making / input.yml
Last active December 13, 2021 04:51
ytt理解チェック
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: demo
name: demo
spec:
replicas: 1
selector:
matchLabels:
#@ load("@ytt:sha256", "sha256")
#@ load("@ytt:data", "data")
---
version: "3"
services:
monitoring-config:
image: hairyhenderson/gomplate:v3.10.0-alpine
container_name: monitoring-config
entrypoint: ["/bin/sh","-c"]
command:
/*
* Copyright (C) 2018-2021 Toshiaki Maki <makingx@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
+ hello-nodejs-build-1-qxxwq-build-pod › prepare
hello-nodejs-build-1-qxxwq-build-pod prepare Build reason(s): CONFIG
hello-nodejs-build-1-qxxwq-build-pod prepare CONFIG:
hello-nodejs-build-1-qxxwq-build-pod prepare resources: {}
hello-nodejs-build-1-qxxwq-build-pod prepare - source: {}
hello-nodejs-build-1-qxxwq-build-pod prepare + source:
hello-nodejs-build-1-qxxwq-build-pod prepare + blob:
hello-nodejs-build-1-qxxwq-build-pod prepare + url: http://source-controller.gitops-toolkit.svc.cluster.local./gitrepository/default/hello-nodejs/9b066f581bd86f6580b73209439bd5cb4b3af523.tar.gz
hello-nodejs-build-1-qxxwq-build-pod prepare Loading secret for "https://ghcr.io" from secret "regsecret" at location "/var/build-secrets/regsecret"