Skip to content

Instantly share code, notes, and snippets.

View thoraxe's full-sized avatar

Erik Jacobs thoraxe

View GitHub Profile
apiVersion: apps/v1
kind: Deployment
metadata:
name: oc
spec:
selector:
matchLabels:
app: oc-pod
replicas: 1
template:
[Unit]
Description=Lab guide container
After=docker.service
Requires=docker.service
[Service]
ExecStartPre=-/usr/bin/docker create --name %n -p 80:8080 --env-file /etc/sysconfig/workshopper docker.io/osevg/workshopper:0.1
ExecStart=/opt/bin/systemd-docker run --name %n
Restart=always
RestartSec=10s