Skip to content

Commit 6efe264

Browse files
Gabriel MonroyMatthew Fisher
authored andcommitted
perf(images): seed the deis-registry with slugrunner on boot
1 parent 853ed89 commit 6efe264

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

contrib/coreos/user-data

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ coreos:
6969

7070
[Install]
7171
WantedBy=multi-user.target
72-
- name: seed-deis-images.service
72+
- name: seed-docker-images.service
7373
command: start
7474
content: |
7575
[Unit]
@@ -80,5 +80,18 @@ coreos:
8080
Type=oneshot
8181
ExecStart=/bin/sh -c 'docker pull deis/slugrunner:latest'
8282

83+
[Install]
84+
WantedBy=multi-user.target
85+
- name: seed-deis-registry.service
86+
command: start
87+
content: |
88+
[Unit]
89+
Description=Seed Deis Registry with Docker Images
90+
Requires=seed-docker-images.service
91+
92+
[Service]
93+
Type=oneshot
94+
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'
95+
8396
[Install]
8497
WantedBy=multi-user.target

0 commit comments

Comments
 (0)