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

Commit

Permalink
perf(images): seed the deis-registry with slugrunner on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Monroy authored and Matthew Fisher committed Apr 15, 2014
1 parent 853ed89 commit 6efe264
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion contrib/coreos/user-data
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ coreos:

[Install]
WantedBy=multi-user.target
- name: seed-deis-images.service
- name: seed-docker-images.service
command: start
content: |
[Unit]
Expand All @@ -80,5 +80,18 @@ 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

[Service]
Type=oneshot
ExecStart=/bin/sh -c 'docker pull deis/slugrunner:latest && docker tag deis/slugrunner 172.17.8.100:5000/deis/slugrunner && docker push 172.17.8.100:5000/deis/slugrunner'

[Install]
WantedBy=multi-user.target

0 comments on commit 6efe264

Please sign in to comment.