Skip to content

Instantly share code, notes, and snippets.

@kadel
Created July 25, 2018 13:19
Show Gist options
  • Select an option

  • Save kadel/e9fc6e47f2a05accf0306b4cb69e70c2 to your computer and use it in GitHub Desktop.

Select an option

Save kadel/e9fc6e47f2a05accf0306b4cb69e70c2 to your computer and use it in GitHub Desktop.
Supervisor with S2I image
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
name: pod-with-supervisord
labels:
app: myapp
spec:
replicas: 1
template:
metadata:
labels:
deploymentconfig: pod-with-supervisord
spec:
volumes:
- name: shared-data
emptyDir: {}
initContainers:
- image: quay.io/tomkral/supervisord-test:latest
name: copy-supervisor
command:
- "/usr/bin/cp"
args:
- "-r"
- "/opt/supervisord"
- /var/lib/
volumeMounts:
- name: shared-data
mountPath: /var/lib/supervisord
containers:
- image: "docker-registry.default.svc:5000/openshift/wildfly:latest"
name: app
volumeMounts:
- name: shared-data
mountPath: /var/lib/supervisord
command:
- "/var/lib/supervisord/bin/supervisord"
args:
- "-c"
- "/var/lib/supervisord/conf/supervisor.conf"
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: false
containerNames:
- app
from:
kind: ImageStreamTag
name: wildfly:latest
namespace: openshift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment