mirror of https://github.com/perkeep/perkeep.git
Add some GCE+Docker+CoreOS notes.
Change-Id: I67d37b3aaf08e22315bda6aae9e7c7d48c67dba5
This commit is contained in:
parent
1bfd1b7d98
commit
90175c209c
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue