Skip to content

Commit 7ab736e

Browse files
author
Gabriel Monroy
committed
Merge pull request #879 from deis/vestigial-templates
style(coreos): remove unused systemd template strings
2 parents 79e0940 + c383ba1 commit 7ab736e

1 file changed

Lines changed: 0 additions & 36 deletions

File tree

controller/scheduler/coreos.py

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,6 @@ def run(self, name, image, command):
183183
rc = p.wait()
184184
return rc, p.stdout.read()
185185

186-
def run(self, name, image, command):
187-
"""
188-
Run a one-off command
189-
"""
190-
print 'Running {name}'.format(**locals())
191-
output = subprocess.PIPE
192-
p = subprocess.Popen('fleetrun.sh {command}'.format(**locals()), shell=True, env=self.env,
193-
stdout=output, stderr=subprocess.STDOUT)
194-
rc = p.wait()
195-
return rc, p.stdout.read()
196-
197186
def attach(self, name):
198187
"""
199188
Attach to a job's stdin, stdout and stderr
@@ -244,28 +233,3 @@ def attach(self, name):
244233
[X-Fleet]
245234
X-ConditionMachineOf={name}.service
246235
"""
247-
248-
ROUTER_TEMPLATE = """
249-
[Unit]
250-
Description={name} router
251-
After=docker.service
252-
Requires=docker.service
253-
254-
[Service]
255-
ExecStartPre=/usr/bin/docker pull {image}
256-
ExecStart=-/usr/bin/docker run --name {name} -p 80:80 -p 443:443 {image} {command}
257-
ExecStop=-/usr/bin/docker rm -f {name}
258-
TimeoutStartSec=10min
259-
"""
260-
261-
LOGGER_TEMPLATE = """
262-
[Unit]
263-
Description={name} logger
264-
After=docker.service
265-
Requires=docker.service
266-
267-
[Service]
268-
ExecStartPre=/usr/bin/docker pull {image}
269-
ExecStart=-/usr/bin/docker run --name {name} -p 514:514 -e PORT=514 {image} {command}
270-
ExecStop=-/usr/bin/docker rm -f {name}
271-
"""

0 commit comments

Comments
 (0)