Skip to content

Instantly share code, notes, and snippets.

@ll911
ll911 / srun.sh
Last active September 27, 2023 19:25
entrypoint for siebel in openshift
#/bin/bash
sed -e "s/^siebel:x:[^:]*:[^:]*:/siebel:x:$(id -u):$(id -u):/" /etc/passwd > /tmp/passwd
cat /tmp/passwd > /etc/passwd
rm /tmp/passwd
export BRC=https://raw.githubusercontent.com/OracleSiebel/ConfiguringSiebel/master/Containerization/Docker/oraclelinux/classic-mde/build/persistence/siebel/standard/bashrc
export CRC=https://raw.githubusercontent.com/OracleSiebel/ConfiguringSiebel/master/Containerization/Docker/oraclelinux/classic-mde/build/persistence/siebel/standard/cshrc
curl -s -o /home/siebel/.bashrc "${BRC}"
curl -s -o /home/siebel/.cshrc "${CRC}"
@ll911
ll911 / orun.sh
Last active September 13, 2023 00:48
entrypoint for oradb in OpenShift
#/bin/bash
sed -e "s/^oracle:x:[^:]*:[^:]*:/oracle:x:$(id -u):$(id -u):/" /etc/passwd > /tmp/passwd
cat /tmp/passwd > /etc/passwd
rm /tmp/passwd
/opt/oracle/runOracle.sh
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
app: pvc-migrator
name: pvc-migrator
spec:
replicas: 0
selector:
app: pvc-migrator
@ll911
ll911 / scylla-statefulset.yaml
Last active February 22, 2019 22:43
scylla-statefulset.yaml
apiVersion: apps/v1beta2
kind: StatefulSet
metadata:
name: scylla
labels:
app: scylla
spec:
serviceName: scylla
replicas: 3
selector:
@ll911
ll911 / bcdc-atomic-migration.bc.yaml
Created November 10, 2018 22:47
bcdc-atomic-migration.bc.yaml
apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
app: bcdc-atomic-migration
name: bcdc-atomic-migration
spec:
failedBuildsHistoryLimit: 5
output:
to:
@ll911
ll911 / bcdc-main-dc.yaml
Last active November 9, 2018 23:58
bcdc-main-dc.yaml
apiVersion: v1
kind: DeploymentConfig
metadata:
annotations:
labels:
app: bcdc
name: ckan-main
name: bcdc-ckan-main
spec:
replicas: 1
@ll911
ll911 / bcdc-ckan-paster.yaml
Created November 8, 2018 23:25
bcdc-ckan-paster.yaml
apiVersion: v1
kind: DeploymentConfig
metadata:
annotations:
labels:
app: bcdc
name: ckan-paster
name: bcdc-ckan-paster
spec:
replicas: 1
@ll911
ll911 / bcdc-datapusher-dc.yaml
Last active November 8, 2018 21:23
bcdc-datapusher-dc.yaml
apiVersion: v1
kind: Service
metadata:
labels:
app: bcdc
name: datapusher
name: datapusher
spec:
ports:
- name: http-proxy
@ll911
ll911 / datapusher-atomic-base.yaml
Last active November 8, 2018 18:20
datapusher-atomic-base.yaml
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: datapusher-atomic-base
spec:
lookupPolicy:
local: false
tags:
- annotations: null
from:
@ll911
ll911 / bcdc-atomic-base.yaml
Last active November 16, 2018 01:47
bcdc-atomic-base.yaml
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: bcdc-atomic-base
spec:
lookupPolicy:
local: false
tags:
- annotations: null
from: