forked from SvenDowideit/bin-dir
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnmachine
More file actions
executable file
·28 lines (25 loc) · 1.05 KB
/
Copy pathnmachine
File metadata and controls
executable file
·28 lines (25 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash -ex
# This script assumes you havelogged into the nectar dashboard,
# set your openstack API password in https://dashboard.rc.nectar.org.au/settings/reset-password/
# then downloaded the Openstack RC file from https://dashboard.rc.nectar.org.au/project/access_and_security/
# Nectar Openstack cloud RC file
source ~/CSIRO-TERN-openrc.sh
#flavour="m1.small" # 4GB RAM
#flavour="m1.medium" # 8GB RAM
#flavour="m1.large" # 16GB RAM
flavour="m1.xlarge" # 32GB RAM
#flavour="m1.xxlarge" # 64GB RAM
docker-machine create -d openstack \
--engine-storage-driver overlay2 \
--openstack-auth-url ${OS_AUTH_URL} \
--openstack-flavor-name ${flavour} \
--openstack-image-name "NeCTAR Debian 9 (Stretch) amd64" \
--openstack-domain-name "${OS_USER_DOMAIN_NAME}" \
--openstack-username "${OS_USERNAME}" \
--openstack-password "${OS_PASSWORD}" \
--openstack-tenant-name "${OS_PROJECT_NAME}" \
--openstack-ssh-user debian \
--openstack-keypair-name "putty sven" \
--openstack-private-key-file ~/.ssh/id_rsa \
--openstack-user-data-file ~/bin/setup-debian.sh \
$@