Commit 0a0aa73e authored by eric pellegrini's avatar eric pellegrini
Browse files

added utils and docs/_static directories

parent 178ebee8
# Ignore everything in this directory
*
# Except this file
!.gitignore
# Upload the image to an openstack server
unset http_proxy
# The OpenStack rc file to be source to define the necessary OS_* env vars
OS_RC_FILE=$1
# The image file generated by packer
IMAGE_FILE=$2
IMAGE_NAME="$(basename -- ${IMAGE_FILE})"
IMAGE_NAME=${IMAGE_NAME%.*}
# The name of the project
PROJECT=$3
# The RAM allocated to this VM
MEMORY=$4
# The number of cpus allocated to this VM
CPUS=$5
# The size of the disk allocated to this VM
DISK_SIZE=$6
# Soure the OpenStack rc file
source ${OS_RC_FILE}
# Create the image
openstack image create ${IMAGE_NAME} \
--public \
--project "${PROJECT}" \
--min-ram ${MEMORY} \
--min-disk ${DISK_SIZE} \
--disk-format qcow2 \
--file ${IMAGE_FILE}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment