Last active
August 29, 2015 14:01
-
-
Save burke/1e00538e721ab0dc88c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create symlinks to this file at `borg-zk-web@{1,2,3}.service`. | |
# Then submit them with `fleetctl submit borg-zk-web@{1,2,3}.service` | |
# Then start them with `fleetctl start borg-zk-web@{1,2,3}.service | |
[Unit] | |
Description=Borg-ZK-Web | |
[Service] | |
EnvironmentFile=/etc/environment | |
ExecStart=/bin/sh -exc "export SERVICE_APPNAME=borg-zk-web; export SERVICE_SHA=3dccdd24e82d8b8a212926e51a5f099d59eef278 ;docker run -e EXTERNAL_PORT=12345 -e EXTERNAL_PUBLIC_IPV4=$COREOS_PUBLIC_IPV4 -e EXTERNAL_PRIVATE_IPV4=$COREOS_PRIVATE_IPV4 -e PORT=8000 -e SERVICE_APPNAME=borg-zk-web -e SERVICE_ROLE=default -e SERVICE_INDEX=%i -e SERVICE_SHA=$SERVICE_SHA -e ETCD_ADDRS=http://$COREOS_PRIVATE_IPV4:4001 registry.borg.chi.shopify.com:5000/borg-zk-web:3dccdd24e82d8b8a212926e51a5f099d59eef278;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core@core-02 ~ $ fleetctl journal -n 50 borg-zk-web@2.service | |
-- Logs begin at Sat 2014-05-10 03:10:46 UTC, end at Sat 2014-05-10 15:23:49 UTC. -- | |
May 10 15:23:02 core-02 systemd[1]: Starting Borg-ZK-Web... | |
May 10 15:23:02 core-02 systemd[1]: Started Borg-ZK-Web. | |
May 10 15:23:02 core-02 sh[22323]: + export SERVICE_APPNAME=borg-zk-web | |
May 10 15:23:02 core-02 sh[22323]: + SERVICE_APPNAME=borg-zk-web | |
May 10 15:23:02 core-02 sh[22323]: + export SERVICE_SHA=3dccdd24e82d8b8a212926e51a5f099d59eef278 | |
May 10 15:23:02 core-02 sh[22323]: + SERVICE_SHA=3dccdd24e82d8b8a212926e51a5f099d59eef278 | |
May 10 15:23:02 core-02 sh[22323]: + docker run -e EXTERNAL_PORT=12345 -e EXTERNAL_PUBLIC_IPV4=172.17.8.102 -e EXTERNAL_PRIVATE_IPV4=172.17.8.102 -e PORT=8000 -e SERVICE_APPNAME=borg-zk-web -e SERVICE_ROLE=default -e SERVICE_INDEX=2 -e SERVICE_SHA=3dccdd24e82d8b8a212926e51a5f099d59eef278 -e ETCD_ADDRS=http://172.17.8.102:4001 registry.borg.chi.shopify.com:5000/borg-zk-web:3dccdd24e82d8b8a212926e51a5f099d59eef278 | |
May 10 15:23:02 core-02 sh[22323]: [BORGINIT] 2014/05/10 15:23:02 started | |
May 10 15:23:02 core-02 sh[22323]: [BORGINIT] 2014/05/10 15:23:02 submitted datadog event: &{Id:2276439453357026677 Title:container started Text:Container name=962eb09fd3b1. Time:0 Priority: AlertType: Host: Aggregation: SourceType: Tags:[app:borginit] Url:https://app.datadoghq.com/event/jump_to?event_id=2276439453357026677 Resource:} | |
May 10 15:23:02 core-02 sh[22323]: [BORGINIT] 2014/05/10 15:23:02 decrypting secrets | |
May 10 15:23:02 core-02 sh[22323]: [BORGINIT] 2014/05/10 15:23:02 app does not use secrets. Skipping | |
May 10 15:23:02 core-02 sh[22323]: [BORGINIT] 2014/05/10 15:23:02 starting to reap children | |
May 10 15:23:02 core-02 sh[22323]: [BORGINIT] 2014/05/10 15:23:02 listening for signals | |
May 10 15:23:02 core-02 sh[22323]: [BORGINIT] 2014/05/10 15:23:02 using role: default | |
May 10 15:23:02 core-02 sh[22323]: [BORGINIT] 2014/05/10 15:23:02 using command: cd zk-web && exec env LEIN_ROOT=1 lein run | |
May 10 15:23:02 core-02 sh[22323]: [BORGINIT] 2014/05/10 15:23:02 starting app (role=default) | |
May 10 15:23:02 core-02 sh[22323]: [BORGINIT] 2014/05/10 15:23:02 started app | |
May 10 15:23:02 core-02 sh[22323]: [BORGINIT] 2014/05/10 15:23:02 writing '172.17.8.102:12345' to etcd key: /borg/servicediscovery/borg-zk-web--default/2 | |
May 10 15:23:02 core-02 sh[22323]: [BORGINIT] 2014/05/10 15:23:02 All initialized. Waiting for App to terminate. | |
May 10 15:23:48 core-02 sh[22323]: Starting server... | |
May 10 15:23:48 core-02 sh[22323]: Server started on port [8000]. | |
May 10 15:23:48 core-02 sh[22323]: You can view the site at http://localhost:8000 | |
May 10 15:23:48 core-02 sh[22323]: #<Server Server@798f5c1e> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment