From 023f92f9e3eec7de6c1286549000be79189a4fde Mon Sep 17 00:00:00 2001 From: Thomas Wiest Date: Mon, 15 Dec 2014 16:00:47 -0500 Subject: changed atomic proxy to use pre-built container images --- .../templates/systemd/ctr-proxy-1.service.j2 | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 roles/atomic_proxy/templates/systemd/ctr-proxy-1.service.j2 (limited to 'roles/atomic_proxy/templates/systemd/ctr-proxy-1.service.j2') diff --git a/roles/atomic_proxy/templates/systemd/ctr-proxy-1.service.j2 b/roles/atomic_proxy/templates/systemd/ctr-proxy-1.service.j2 new file mode 100644 index 000000000..988a9f544 --- /dev/null +++ b/roles/atomic_proxy/templates/systemd/ctr-proxy-1.service.j2 @@ -0,0 +1,32 @@ +[Unit] +Description=Container proxy-1 + + +[Service] +Type=simple +TimeoutStartSec=5m +Slice=container-small.slice + +ExecStartPre=-/usr/bin/docker rm "proxy-1" + +ExecStart=/usr/bin/docker run --rm --name "proxy-1" \ + --volumes-from proxy-shared-data-1 \ + -a stdout -a stderr -p 80:80 -p 443:443 -p 4999:4999 \ + "docker-registry.ops.rhcloud.com/oso-v2-proxy:{{ oo_env }}" + +ExecReload=-/usr/bin/docker stop "proxy-1" +ExecReload=-/usr/bin/docker rm "proxy-1" +ExecStop=-/usr/bin/docker stop "proxy-1" + +[Install] +WantedBy=container.target + +# Container information +X-ContainerId=proxy-1 +X-ContainerImage=docker-registry.ops.rhcloud.com/oso-v2-proxy:{{ oo_env }} +X-ContainerUserId= +X-ContainerRequestId=LwiWtYWaAvSavH6Ze53QJg +X-ContainerType=simple +X-PortMapping=80:80 +X-PortMapping=443:443 +X-PortMapping=4999:4999 -- cgit v1.2.3