Skip to content
This repository was archived by the owner on Sep 22, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions docker-registry-s3/registry.1.service

This file was deleted.

14 changes: 0 additions & 14 deletions docker-registry-s3/registry.2.service

This file was deleted.

14 changes: 0 additions & 14 deletions docker-registry-s3/registry.3.service

This file was deleted.

22 changes: 22 additions & 0 deletions docker-registry-s3/registry@.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[Unit]
Description=Custom Docker Registry
After=docker.service

[Service]
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill registry-%i
ExecStartPre=-/usr/bin/docker rm registry-%i
ExecStartPre=/usr/bin/docker pull registry
ExecStart=/usr/bin/docker run -rm \
--name registry-%i \
-p 5000:5000 \
-e AWS_KEY="replace-me" \
-e AWS_SECRET="replace-me" \
-e SETTINGS_FLAVOR=s3 \
-e AWS_BUCKET=replace-me \
-e STORAGE_PATH=/prod \
registry:0.7.1
ExecStop=/usr/bin/docker stop registry-%i

[X-Fleet]
Conflicts=registry@*.service
10 changes: 0 additions & 10 deletions simple-fleet/apache-discovery.2.service

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[Unit]
Description=Announce Apache1
BindsTo=apache.1.service
BindsTo=apache@%i.service

[Service]
ExecStart=/bin/sh -c "while true; do etcdctl set /services/website/apache1 '{ \"host\": \"%H\", \"port\": 80, \"version\": \"52c7248a14\" }' --ttl 60;sleep 45;done"
ExecStop=/usr/bin/etcdctl rm /services/website/apache1

[X-Fleet]
X-ConditionMachineOf=apache.1.service
MachineOf=apache@%i.service
11 changes: 0 additions & 11 deletions simple-fleet/apache.1.service

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ ExecStart=/usr/bin/docker run --name apache -p 80:80 coreos/apache /usr/sbin/apa
ExecStop=/usr/bin/docker stop apache

[X-Fleet]
X-Conflicts=apache.*.service
Conflicts=apache@*.service