From 90175c209cf43941d2e6bbc85180cc6390f96265 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 2 Aug 2014 17:24:21 -0700 Subject: [PATCH] Add some GCE+Docker+CoreOS notes. Change-Id: I67d37b3aaf08e22315bda6aae9e7c7d48c67dba5 --- misc/gce/cloud-config.yaml | 19 +++++++++++++++++++ misc/gce/notes.txt | 8 ++++++++ 2 files changed, 27 insertions(+) create mode 100644 misc/gce/cloud-config.yaml create mode 100644 misc/gce/notes.txt diff --git a/misc/gce/cloud-config.yaml b/misc/gce/cloud-config.yaml new file mode 100644 index 000000000..78c4ebb95 --- /dev/null +++ b/misc/gce/cloud-config.yaml @@ -0,0 +1,19 @@ +#cloud-config + +coreos: + units: + - name: hello-docker.service + command: start + content: | + [Unit] + Description=Camlistore + After=docker.service + Requires=docker.service + + [Service] + ExecStart=/usr/bin/docker run -p 80:80 camlistore/hello + RestartSec=500ms + Restart=always + + [Install] + WantedBy=multi-user.target diff --git a/misc/gce/notes.txt b/misc/gce/notes.txt new file mode 100644 index 000000000..ec9221434 --- /dev/null +++ b/misc/gce/notes.txt @@ -0,0 +1,8 @@ +gcutil --project=camanaged addinstance \ + --image=projects/coreos-cloud/global/images/coreos-alpha-394-0-0-v20140801 \ + --persistent_boot_disk \ + --zone=us-central1-a --machine_type=n1-standard-1 \ + --external_ip_address=107.178.208.16 \ + --auto_delete_boot_disk \ + --tags=http-server,https-server \ + --metadata_from_file=user-data:cloud-config.yaml core1