This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: oc | |
spec: | |
selector: | |
matchLabels: | |
app: oc-pod | |
replicas: 1 | |
template: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |