Merge pull request #1798 from coreos-inc/qemu-coreos-defaults
Set defaults in qemu-coreos entrypoint
This commit is contained in:
commit
c10113d0ca
1 changed files with 4 additions and 1 deletions
|
@ -1,11 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
VM_VOLUME_SIZE="${VM_VOLUME_SIZE:-32G}"
|
||||||
|
VM_MEMORY="${VM_MEMORY:-8G}"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
set -o nounset
|
set -o nounset
|
||||||
|
|
||||||
mkdir -p /userdata/openstack/latest
|
mkdir -p /userdata/openstack/latest
|
||||||
echo "$USERDATA" > /userdata/openstack/latest/user_data
|
echo "${USERDATA}" > /userdata/openstack/latest/user_data
|
||||||
|
|
||||||
time qemu-img resize ./coreos_production_qemu_image.img "${VM_VOLUME_SIZE}"
|
time qemu-img resize ./coreos_production_qemu_image.img "${VM_VOLUME_SIZE}"
|
||||||
|
|
||||||
|
|
Reference in a new issue