GCE: use host's /tmp dir instead of inside container.

Change-Id: I2a52249148541c97dfdd84bac57a1605e0366471
This commit is contained in:
Brad Fitzpatrick 2014-08-18 17:13:46 -07:00
parent ae0607cbca
commit 5a95215fcc
1 changed files with 6 additions and 1 deletions

View File

@ -63,6 +63,11 @@ func main() {
}
cloudConfig := `#cloud-config
write_files:
- path: /tmp/camlistore-tmp/README
permissions: 0644
content: |
This is the Camlistore /tmp directory.
coreos:
units:
- name: systemd-journal-gatewayd.socket
@ -107,7 +112,7 @@ coreos:
Requires=docker.service
[Service]
ExecStart=/usr/bin/docker run -p 80:80 -p 443:443 -v /run/camjournald.sock:/run/camjournald.sock camlistore/camlistored
ExecStart=/usr/bin/docker run -p 80:80 -p 443:443 -v /run/camjournald.sock:/run/camjournald.sock -v /tmp/camlistore-tmp:/tmp camlistore/camlistored
RestartSec=500ms
Restart=always