Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e
build()
{
dockerfile | docker build -f - --build-arg IMAGE="${IMAGE}" . "${@}" -t elemental/iso:latest
}
dockerfile()
install:
device: /dev/nvme0n1
users:
- name: root
passwd: root
apiVersion: batch/v1
kind: Job
metadata:
name: test-buildpack
namespace: tekton-staging
spec:
ttlSecondsAfterFinished: 600
template:
spec:
nodeSelector:
@agracey
agracey / setup_gitjob.md
Last active September 15, 2021 19:36
Using GitJob to automate Epinio installations

One of the more interesting features of Rio was that it would let you set up a deployment that rebuilds and republishes when your code stored in Git is changed.

We can recreate this functionality using the GitJob CRD that's a part of Rancher Fleet.

NOTE: We will improve this experience in the future!

Setup

Install GitJob

@agracey
agracey / Epinio-bp-config.md
Last active July 8, 2022 18:15
Language specific buildpack configuration options
apiVersion: v1
kind: ServiceAccount
metadata:
name: epinio-gitjob
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: epinio-gitjob
import axios from 'axios'
import qs from 'qs'
const uaa_uri = 'https://uaa.cap.staging.explore.suse.dev'
const cf_uri = 'https://api.cap.staging.explore.suse.dev'
const cf_api_user = 'admin'
const cf_api_password = 'REDACTED'
const login = async ()=>{
defaultNamespace: minibroker-charts
provisioning:
mariadb:
overrideParams:
db:
user: "dbuser"
name: "default"
replication:
enabled: false