FIWARE MEXICO WorkShop 2016 - 8. Example of FIWARE Applications by HopUbiquitous
FIWARE Cloud Exercises (Developer's week)
-
Upload
fernando-lopez-aguilar -
Category
Technology
-
view
729 -
download
1
Transcript of FIWARE Cloud Exercises (Developer's week)
![Page 1: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/1.jpg)
FIWARE Cloud Exercises
Contact twitter
@flopezaguilarContact email
![Page 2: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/2.jpg)
Outline• LAB-1. Creating a new keypair.
• LAB-2. Creating Security Group.
• LAB-3. Allocating a new IP.
• LAB-4. Deploying a new VM.
• LAB-5. Accessing the VM.
• LAB-6. Creating Volumes.
• LAB-7. Managing Volumes.
• LAB-8. Using the Object storage.
• LAB-9. Coding with object storage.
• LAB-10. Advanced object storage.
• LAB-11. Expert object storage.
• LAB-12. Blueprint Template Creation from scratch.
• LAB-13. Blueprint Template Deployment.
• LAB-14. Blueprint Template Cloning.
2
![Page 3: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/3.jpg)
LAB-1. Creating a new keypair.
• Prerequisite– To have a FIWARE Lab account.
• Steps– The user should create a keypair called 'keypairtest’.
– After creation, should download the private key file to a local
folder in order to use it.
– If user is using a Unix operating system should update file
privileges to disable “Executing” to others.
– If user is using Windows, should convert the keypair file to a ppk
file to access with Putty.
• Hints– Video about Instances in http://help.lab.fiware.org/
– Presentation http://tinyurl.com/fiwarelab-cloud, slides 11 to 16.
Easy
![Page 4: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/4.jpg)
LAB-2. Creating Security Group.
• Prerequisite– To have a FIWARE Lab account.
• Steps– The user should create a security group called ‘sgtest’.
– After creation, user should add different rules to make some
ports accessibles. (at least 22 port to access with ssh).
• Hints
– Video about Instances in http://help.lab.fiware.org/
– Presentation http://tinyurl.com/fiwarelab-cloud, slides 17 to
20.
Easy
![Page 5: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/5.jpg)
LAB-3. Allocating a new IP.
• Prerequisite– To have a FIWARE Lab account.
• Steps– The user should allocate a new Floating IP from a pool.
• Hints– Video about Instances in http://help.lab.fiware.org/
– Presentation http://tinyurl.com/fiwarelab-cloud slide 21.
Easy
![Page 6: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/6.jpg)
LAB-4. Deploying a new VM.
• Prerequisite– Exercises 1 to 3.
• Steps– Deploy a VM, launching a public base image: in this case we will
use an Ubuntu 14.04 Server with the name: myUbuntu.
– Deploy the image selecting a flavor tiny in the first Step.
– Select the keypair called ‘keypairtest’ and selecting the security
group ’sgtest’.
– Associate the Floating IP created in the third exercise to the VM
‘myUbuntu’.
– Use the shared-net or other public network available in the node.
• Hints– Video about Instances in http://help.lab.fiware.org/
– Presentation http://tinyurl.com/fiwarelab-cloud from slide 22 to 29.
Easy
![Page 7: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/7.jpg)
LAB-5. Accessing the VM.
• Prerequisite– Exercises 1 to 4.
• Steps– The user should access to the VM with his own keypair.
• Hints– Video about Instances in http://help.lab.fiware.org/
– Presentation http://tinyurl.com/fiwarelab-cloud slide 14 or 30
depending on the operative system of the user.
Easy
![Page 8: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/8.jpg)
LAB-6. Creating Volumes.
• Prerequisite– Exercises 1 to 4.
• Steps– The user should create a new volume with a name: 'my
volume’.
– After creation, user should attach the volume created
'myvolume' to the vm ‘myUbuntu’.
• Hints– Video about Instances in http://help.lab.fiware.org/
– Presentation http://tinyurl.com/fiwarelab-cloud from slide 54
to 56.
Easy
![Page 9: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/9.jpg)
• Prerequisite- Exercise 6.
• Steps- The user should mount the volume in the /DeveloperWeek path
in ext3 file format.
- Write the file HelloWorld.txt in this directory.
- Shutdown the instance and start again to see again the content.
- Unmount and dettach it to attach and mount in other instance,
Can you read the file?
• Hints- Video about Instances in http://help.lab.fiware.org/
- Presentation http://tinyurl.com/fiwarelab-cloud from slide 57 to
62.
MediumLAB-7. Managing Volumes.
![Page 10: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/10.jpg)
LAB-8. Using the Object Storage.
• Prerequisite– To have a FIWARE Lab account.
– Create an example text file.
• Steps– Create your own container called ‘myContainer’ using FIWARE
Lab.
– Upload your example text file to the container ‘myContainer’.
• Hints– Video about Object Storage in http://help.lab.fiware.org/
– Presentation http://tinyurl.com/fiwarelab-cloud from slide 62
to 63.
Easy
![Page 11: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/11.jpg)
MediumLAB-9. Coding with object storage.
• Prerequisite– Exercise 8.
• Steps– Write a program in any language you choose that:
• Provide user possibility of UPLOAD a new file to an existing
container.
• Provide user possibility to DOWNLOAD a file from the
object storage.
– Use the program to upload a new example text file with a
different name.
• Hints– Video about Object Storage in http://help.lab.fiware.org/
– Presentation http://tinyurl.com/fiwarelab-cloud slide 64.
![Page 12: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/12.jpg)
HardLAB-10. Advanced object storage.
• Prerequisite– Exercise 8 to 9.
• Steps– Write a program in any language you choose that:
• Before upload a new file to the object storage, program should
check the number of files in the container. If the container has
2 or more files inside, program should create a new container
and upload the file to this new container.
– Use the program to upload a third example text file with a
different name than previous files.
• Hints– Video about Object Storage in http://help.lab.fiware.org/
– Presentation http://tinyurl.com/fiwarelab-cloud slide from
62 to 64.
![Page 13: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/13.jpg)
HardLAB-11. Expert object storage.
• Prerequisite– Know how to resolve all exercise of Object Storage.
– Knowledge about HTML and any programming language (eg.
JScript).
• Steps– Design a web page in HTML5 that:
• List video files from a container called ‘myvideos’.
• If user clicks on a video name, video should be played.
• Hints– Video about Object Storage in http://help.lab.fiware.org/
– Presentation http://tinyurl.com/fiwarelab-cloud slide 64.
![Page 14: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/14.jpg)
LAB-12. Blueprint Template Creation
from scratch.
• Prerequisite– Compute exercises.
• Steps– This exercise involves the creation of a blueprint template
from scratch. To do that:
• The user should create a template called my template.
• It should add two tiers:
–tomcat with Image: CentOS 6.5init, flavor: small, keypair (the keypair
previously created), software TOMCAT, network mynetwork.
–mysql with Image: CentOS 6.5init, flavor: small, keypair (the keypair
previously created), software MYSQL, network mynetwork.
• Hints– Video about Cloud-Blueprints in http://help.lab.fiware.org/
– Presentation http://tinyurl.com/fiwarelab-cloud from slide 65.
Easy
![Page 15: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/15.jpg)
LAB-13. Blueprint Template
Deployment.
• Prerequisite- Compute exercises and Blueprints 1.
• Steps- This exercise involves the deployment of the blueprint
previously created. To do that:
• The user should select the template and click in deploy.
• 2 VMs should be created. Check it and access by ssh.
• Check that there is a tomcat installed in VM1 and mysql
installed in VM2.
• Hints– Video about Cloud-Blueprints in http://help.lab.fiware.org/
– Presentation http://tinyurl.com/fiwarelab-cloud from slide 65.
Easy
![Page 16: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/16.jpg)
LAB-14. Blueprint Template Cloning.
• Prerequisite- Compute exercises and blueprint exercises 1 and 2.
• Steps– This exercise involves cloning a blueprint.
• The user should go the template catalog.
• Then select one and click in Clone.
• Finally, update each tier with its information (for instance
keypair).
• Hints– Video about Cloud-Blueprints in http://help.lab.fiware.org
– Presentation http://tinyurl.com/fiwarelab-cloud from slide 65.
Easy
![Page 17: FIWARE Cloud Exercises (Developer's week)](https://reader035.fdocuments.in/reader035/viewer/2022071814/55a5255a1a28abd90e8b4662/html5/thumbnails/17.jpg)
Thanks!Thanks!