-
Notifications
You must be signed in to change notification settings - Fork 2
Setup a LA demo using microstack
This howto explains how to deploy a LA demo portal using microstack
and the la-toolkit
.
For that,
-
Install the
la-toolkit
in your computer: https://github.com/living-atlases/la-toolkit#prerequisites -
Install
microstack
following the instructions in: https://microstack.run/docs/single-node -
When completed, list the different VMs flavors you have, for instance:
$ microstack.openstack flavor list
+----+-----------+-------+------+-----------+-------+-----------+
| ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public |
+----+-----------+-------+------+-----------+-------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | 1 | True |
| 2 | m1.small | 2048 | 20 | 0 | 1 | True |
| 3 | m1.medium | 4096 | 20 | 0 | 2 | True |
| 4 | m1.large | 8192 | 20 | 0 | 4 | True |
| 5 | m1.xlarge | 16384 | 20 | 0 | 8 | True |
+----+-----------+-------+------+-----------+-------+-----------+
-
Test you can access to microstack UI at https://10.20.20.1/
-
Download some ubuntu 18.04 (and optionally 20.04) images from, for instance bionic-server-cloudimg-amd64.img from https://cloud-images.ubuntu.com/bionic/current/
-
Create the images in https://10.20.20.1/admin/images
- Now create a VM with that image and choosing a flavor with enough resources (you can create more if you want to test more services, but in this example we'll create only one):
$ microstack launch ubuntu-18.04 -n la-test-1 --flavor 4
Launching server ...
Allocating floating ip ...
Server la-test-1 launched! (status is BUILD)
Access it with `ssh -i /home/youruser/snap/microstack/common/.ssh/id_microstack ubuntu@10.20.20.74`
You can also visit the OpenStack dashboard at https://10.20.20.1:443
We'll use this ssh key id_microstack
to access this VM from our la-toolkit.
- Access to your key pairs and copy the public ssh key string:
https://10.20.20.1/project/key_pairs/
- copy this public key string to a text file
id_microstack.pub
and the above private key/home/youruser/snap/microstack/common/.ssh/id_microstack
to your la-toolkit ssh keys directory:
$ ls -lrta /data/la-toolkit/ssh/id_microstack*
-rw------- 1 youruser youruser 1678 jun 14 14:32 /data/la-toolkit/ssh/id_microstack
-rw-rw-r-- 1 youruser youruser 399 jun 14 14:33 /data/la-toolkit/ssh/id_microstack.pub
- In the
la-toolkit
reload your keys to see that reads this new pair of keys
- Create a New LA Project:
- Add the name of the VM you created above:
- Select and assign some basic LA services to that VM. In this example we only select these basic services. If you want to test more services, probably you'll need more VMs a resources:
Continue testing your with the LA Quick Start Guide
Index
- Wiki home
- Community
- Getting Started
- Support
- Portals in production
- ALA modules
- Demonstration portal
- Data management in ALA Architecture
- DataHub
- Customization
- Internationalization (i18n)
- Administration system
- Contribution to main project
- Study case