-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
35 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,48 @@ | ||
# docker-fiware | ||
|
||
[![License badge](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) | ||
|
||
## Introduction | ||
|
||
Sample docker-compose and configuration files to deploy almost a complete FIWARE architecture example. | ||
|
||
## Install | ||
|
||
Simple clone the repository in your local folder: | ||
You have two possibilites to deploy this component, locally in your environment or in a virtual machine. | ||
|
||
### Install locally | ||
|
||
In order to install locally this component you have to keep in mind that you should have installed previously | ||
docker and docker-compose. Please follow the tutorial [Install Docker CE](https://docs.docker.com/install/) in | ||
order to install docker engine and then follow the documentation [Install Docker Compose](https://docs.docker.com/compose/install/). | ||
|
||
The next step is simple clone the repository in your local folder: | ||
|
||
```bash | ||
git clone https://github.com/flopezag/docker-fiware | ||
``` | ||
|
||
Once you did it you can go into the IdM Instance and configure your application (in this case the Wirecloud). Remember that in this case you need to put the URL of the application <http://127.0.0.1> and the callback url <http://127.0.0.1/complete/fiware>. Leave the rest of questions without change. Optionally, you can provide some description just to know what is about. | ||
After this step you can launch your services just executing: | ||
|
||
Click on Next and Finish the process. It will generage your OAuth2 credentials (Client ID and Client Secret values) of your application. It is needed in order to configure Wirecloud to connect to this IdM instance. | ||
```bash | ||
docker-compose up -d | ||
``` | ||
|
||
To configure your wirecloud instance just execute the configuration script: | ||
Last but not leasr, to configure your wirecloud instance just execute the configuration script: | ||
|
||
```bash | ||
./setup.sh init | ||
``` | ||
|
||
It will request you the OAuth2 credentials and automatically will change all the parameters in wirecloud in order to use the authentication using your own instance of IdM. | ||
|
||
Last but not least, due to internal communication of the Wirecloud it is needed that your /etc/hosts file could include the following line: | ||
It will request you the user name and password of the [IdM](http://127.0.0.1:3000) instance that you have allocated. | ||
Please use the default administration user of the IdM. In order to access the wirecloud just go to the link | ||
[Wirecloud](http://127.0.0.1). | ||
|
||
```bash | ||
127.0.0.1 localhost fiware-idm | ||
``` | ||
### Install remotelly | ||
|
||
## Usage | ||
In order to install and configure the deployment of this dockers, you can take a look to the documentation provided in | ||
deploy folder, [How to deploy it in a specific machine](deploy/README.md) | ||
|
||
## License | ||
|
||
Apache2.0 | ||
These scripts are licensed under Apache License 2.0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters