Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #770 from opdemand/move_seed_registry
Browse files Browse the repository at this point in the history
refactor(seed-deis-registry): move to .service file
  • Loading branch information
Matthew Fisher committed Apr 17, 2014
2 parents a1ce3cd + 67ebd8c commit 6198a79
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
14 changes: 0 additions & 14 deletions contrib/coreos/user-data
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,5 @@ coreos:
Type=oneshot
ExecStart=/bin/sh -c 'docker pull deis/slugrunner:latest'

[Install]
WantedBy=multi-user.target
- name: seed-deis-registry.service
command: start
content: |
[Unit]
Description=Seed Deis Registry with Docker Images
Requires=seed-docker-images.service deis-registry.service
After=deis-registry.service

[Service]
Type=oneshot
ExecStart=/bin/sh -c "IFACE=$(netstat -nr | grep ^0.0.0.0 | awk '{print $8}') && HOST_IP=$(/bin/ifconfig $IFACE | awk '/inet /{print $2}') && docker pull deis/slugrunner:latest && docker tag deis/slugrunner $HOST_IP:5000/deis/slugrunner && docker push $HOST_IP:5000/deis/slugrunner"

[Install]
WantedBy=multi-user.target
11 changes: 11 additions & 0 deletions registry/systemd/seed-deis-registry.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Seed Deis Registry with Docker Images
Requires=seed-docker-images.service deis-registry.service
After=deis-registry.service

[Service]
Type=oneshot
ExecStart=/bin/sh -c "IFACE=$(netstat -nr | grep ^0.0.0.0 | awk '{print $8}') && HOST_IP=$(/bin/ifconfig $IFACE | awk '/inet /{print $2}') && docker pull deis/slugrunner:latest && docker tag deis/slugrunner $HOST_IP:5000/deis/slugrunner && docker push $HOST_IP:5000/deis/slugrunner"

[Install]
WantedBy=multi-user.target

0 comments on commit 6198a79

Please sign in to comment.