20 lines
409 B
Desktop File
20 lines
409 B
Desktop File
[Unit]
|
|
Description=Openstack heat Container
|
|
After=docker.service
|
|
Requires=docker.service
|
|
|
|
[Service]
|
|
TimeoutStartSec=0
|
|
Restart=always
|
|
ExecStartPre=-/usr/bin/docker kill %n
|
|
ExecStartPre=-/usr/bin/docker rm %n
|
|
ExecStart=/usr/bin/docker run --name %n \
|
|
{{ env_vars | replace('\n', '') }} \
|
|
-v /srv/heat/root:/root \
|
|
-p 8000:8000 \
|
|
-p 8004:8004 \
|
|
{{ docker_image }}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|