Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PaNOSC
Data Analysis Services
packme
Commits
0a0aa73e
Commit
0a0aa73e
authored
Jan 15, 2020
by
eric pellegrini
Browse files
added utils and docs/_static directories
parent
178ebee8
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/_static/.gitignore
0 → 100644
View file @
0a0aa73e
# Ignore everything in this directory
*
# Except this file
!.gitignore
utils/upload_image.sh
0 → 100755
View file @
0a0aa73e
# 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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment