Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Arrowhead-Integrator
- This project is an integrator between Cumulocity and the Arrowhead Framework. Developed under the course D0020E at Luleå Technical University.
- ## Table of Contents
- [Getting Started](#getting-stated)
- [Prerequisites](#prerequisites)
- [curl](#curl)
- [Docker](#docker)
- [Docker-compose](#docker-compose)
- [Download the Arrowhead Framework docker](#download-the-arrowhead-framework-docker)
- ## Getting Started
- ### Prerequisites
- #### curl
- curl is used to download the correct version of docker-compose. To install curl do:
- ```
- sudo apt-get install curl
- ```
- #### Docker
- As the Arrowhead Framework local cloud is running with docker we need to download docker:
- ```
- sudo apt-get install docker.io
- ```
- #### Docker-compose
- The arrowhead framework docker needed version 1.17.x to run. To download this version of docker-compose:
- ```
- sudo curl -L https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- ```
- #### Download the Arrowhead Framework docker
- You can download the Arrowhead Framework docker [here](https://forge.soa4d.org/frs/download.php/file/273/ahf-docker-17.10.4.0.zip)
- ## Installing
- To install and get the docker running follow these steps go to the directory where the Arrowhead Framework docker is downloaded and unzip:
- ```
- cd ~/Downloads/ahf-docker-17.10.4.0/core/
- sudo docker-compose up --build
- ```
- ### Cumulocity password
- To make sure you got the right cumulocity domain, username and password you need to change data in integrator.properties (example can be found in integrator.properties.example):
- ```
- cumulocity_domain=<domain>
- cumulocity_username=<user>
- cumulocity_password=<pass>
- ```
- If a problem occurred please check the [Common Problem section](#common-problems).
- ## Useful links
- To check which services and authorisation rules that is currently added to AHF you can go to:
- [http://127.0.0.1:8080/managementtool/](http://127.0.0.1:8080/managementtool/)
- ## Common Problems
- ### Bind address already in use
- Check which program that is using the same port
- ```
- sudo netstat -peanut | grep -P ":53\s"
- ```
- If it is dnsmasq that uses port 53 follow these steps:
- 1. ```gksudo gedit /etc/NetworkManager/NetworkManager.conf```
- 2. Change "dns=dnsmasq" to "#dns=dnsmasq"
- 3. save and exit
- 4. ```sudo service network-manager restart```
- 5. Should work now, go to the ahf-docker directory and try ```sudo docker-compose up --build```
- ### Remote failure: JVM option - Ddns.server=bind.docker.ahf already exists in the configuration
- Check which containers that exists with:
- ```
- sudo docker ps -a
- ```
- For each container that exists run the following command:
- ```
- sudo docker rm <containerID>
- ```
- **NOTE: This will remove the containers. Make sure this is what you really want.**
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement