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