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
[Unit] | |
Description=Nginx Container that serves the files from the data container. | |
After=munki-data.service | |
Requires=docker.service | |
[Service] | |
ExecStartPre=-/usr/bin/docker kill munki-%i | |
ExecStartPre=-/usr/bin/docker rm -f munki-%i | |
ExecStartPre=/usr/bin/docker pull macadmins/munki | |
ExecStart=/usr/bin/docker run --rm --name munki-%i --volumes-from munki-data -p %i:80 macadmins/munki |
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
[Unit] | |
Description=Register for Munki service | |
BindsTo=munki@%i.service | |
After=munki@%i.service | |
[Service] | |
EnvironmentFile=/etc/environment | |
RemainAfterExit=yes | |
ExecStart=/bin/sh -c "/bin/etcdctl set \"/vulcand/upstreams/munki.whitbyschool.net/endpoints/munki-register@%i.service\" http://$COREOS_PUBLIC_IPV4:%i; \ | |
/bin/etcdctl set \"/vulcand/hosts/munki.whitbyschool.net/locations/home/path\" '/.*'; \ |
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@coreos1 ~ $ docker logs bsdpy_daemon | |
Starting nginx: nginx. | |
Already up-to-date. | |
08/10/2014 02:22:50 AM - DEBUG: | |
-=- Starting new BSDP server session -=- | |
08/10/2014 02:22:50 AM - DEBUG: Considering NBI source at /nbi/fs1.nbi | |
08/10/2014 02:22:50 AM - DEBUG: Considering NBI source at /nbi/spirit.nbi | |
08/10/2014 02:22:50 AM - DEBUG: [========= Using the following boot images =========] |
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
<div class="showcase"> | |
<div class="stage" onClick='stageClicked();'> | |
<img href="#" alt="Whitby" src="custom/resources/whitby.png" /> | |
</div> | |
</div> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>_metadata</key> | |
<dict> | |
<key>created_by</key> | |
<string>vvrantchan</string> | |
<key>creation_date</key> | |
<date>2014-08-21T07:17:34Z</date> |
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
sudo systemctl start user-cloudinit@var-lib-coreos\x2dinstall-user_data.service | |
core@coreos1 ~ $ systemctl status user-cloudinit@var-lib-coreos\x2dinstall-user_data.service | |
● user-cloudinit@var-lib-coreosx2dinstall-user_data.service - Load cloud-config from /var/lib/coreosx2dinstall/user_data | |
Loaded: loaded (/usr/lib64/systemd/system/user-cloudinit@.service; static) | |
Active: inactive (dead) | |
Sep 03 22:18:17 coreos1.whitbyschool.net systemd[1]: Started Load cloud-config from /var/lib/coreosx2dinstall/user_data. |
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
# Data Container | |
/usr/bin/docker start -a postgres-data-munkiwebadmin || /usr/bin/docker run \ | |
--name postgres-data-munkiwebadmin -v /var/lib/postgresql/data busybox | |
# Postgres Container | |
/usr/bin/docker run --rm --name postgres-munkiwebadmin \ | |
-e POSTGRES_USER=munkiwebadmin -e POSTGRES_PASSWORD=nopassword \ | |
--volumes-from postgres-data-munkiwebadmin postgres | |
ExecStop=-/usr/bin/docker stop postgres-munkiwebadmin |
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
package main | |
import ( | |
"fmt" | |
"howett.net/plist" | |
"os" | |
) | |
type Failure struct { | |
Message string `plist:"message"` |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"os" | |
"time" | |
"howett.net/plist" | |
) |
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
package main | |
import ( | |
"encoding/json" | |
"log" | |
"net/http" | |
"os" | |
"howett.net/plist" | |
) |