Skip to content

Instantly share code, notes, and snippets.

Avatar

Erik Jacobs thoraxe

View GitHub Profile
View oc-pod.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: oc
spec:
selector:
matchLabels:
app: oc-pod
replicas: 1
template:
View docker-lab.service
[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