Add some GCE+Docker+CoreOS notes.

Change-Id: I67d37b3aaf08e22315bda6aae9e7c7d48c67dba5
This commit is contained in:
Brad Fitzpatrick 2014-08-02 17:24:21 -07:00
parent 1bfd1b7d98
commit 90175c209c
2 changed files with 27 additions and 0 deletions

View File

@ -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

8
misc/gce/notes.txt Normal file
View File

@ -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