This document outlines the steps a developer would take to deploy a virtual machine on the FIWARE Lab and install various components including CKAN, OAuth2 and private dataset plugins for CKAN, and the WStore component. It provides prerequisites, installation steps, and hints for 6 exercises: 1) Deploying a VM, 2) Installing CKAN, 3) Installing the CKAN OAuth2 plugin, 4) Installing the CKAN private datasets plugin, 5) Installing WStore and adding a repository, and 6) Installing the CKAN Store publisher plugin. The steps primarily involve following documentation for each component and modifying configuration files.
3. DM-DEV-1. Deploy a Virtual Machine
• Prerequisites
– A FIWARE Lab account
• Steps
– Select Ubuntu 12.04 Server x86_64
– Create a different Security Group
• Ports:
– 8080: It will be used for CKAN
– 8282: It will be used for the Store
• Hints:
– Do not forget creating a key pair
– Assign a public IP address to your machine
Easy
4. DM-DEV-2. Install CKAN
• Prerequisites
– A FIWARE Lab account
– A virtual machine
• Steps:
– Follow this instructions:
http://docs.ckan.org/en/latest/maintaining/installing/ins
tall-from-package.html
– Install the version 2.2
– DataStore and FileStore are required (not optional) in
this case
– Install also the Data Pusher extension
– Disable NGINX startup:
• sudo update-rc.d -f nginx disable
– Check that CKAN is running on YOUR_IP:8080
Medium
5. DM-DEV-3. Install CKAN OAuth2 Plugin
• Prerequisites
– A FIWARE Lab account
– DM-DEV-2
• Steps:
– Follow these instructions:
https://github.com/conwetlab/ckanext-oauth2/wiki/Activating-
and-Installing
• Hint:
– You need to create an application in the Account Portal
– Make OAuth2 works on HTTP
• Edit /etc/apache2/envvars
• Add export OAUTHLIB_INSECURE_TRANSPORT=True
– Activate virtualenv:
• . /usr/lib/ckan/default/bin/activate
Easy
6. DM-DEV-4. Install CKAN Private Datasets Plugin
• Prerequisites
– A FIWARE Lab account
– DM-DEV-2
• Steps:
– Follow these instructions:
https://github.com/conwetlab/ckanext-oauth2
• Hint:
– Use the FIWARE Notification Parser
– Do not secure the notification callback
– Install directory:
• /usr/lib/ckan/default/src/ckan/ckanext
Easy
7. DM-DEV-5. Install Wstore (1)
• Prerequisites
– A FIWARE Lab account
– DM-DEV-1
• Steps:
– Download the file from
https://forge.fiware.org/frs/download.php/1596/APPS-
Store-WStore-4.1.0.zip
– Follow the instructions form:
https://github.com/conwetlab/wstore
– Check that the Store is running in YOUR_IP:8282
– Add a Repo
• Administration > Repositories > Add
– Name: DevelopersWeek
– URL: http://130.206.85.51:8080/Repository-RI-3.2.2/v1
Medium
8. DM-DEV-5. Install Wstore (2)
• Hints
– You should use the port 8282. ¡BE CAREFUL!
• /etc/apache2/ports.conf needs to be modified to include the port
• This is only because you’re installing the two platforms in the
same machine
– You should register another application in the IdM
– Read the instructions carefully
– IdM end point: https://account.lab.fiware.org
Medium
9. DM-DEV-6. Install CKAN Store Publisher Plugin
• Prerequisites
– A FIWARE Lab account
– DM-DEV-2
• Steps:
– Follow these instructions:
https://github.com/conwetlab/ckanext-storepublisher
• Hint:
– Store URL: YOUR_IP:8282
– Repository: DevelopersWeek
• Or the name you chose when the Repository was added in th
– Install directory:
• /usr/lib/ckan/default/src/ckan/ckanext
Easy