Install a dockerized application with connector
Overview
This tutorial will describe how to run the dockerized application with the connector. This tutorial does not contain information on dockerization of the app. Kindly dockerization tutorial according to your app.
You can find the sample-nodejs application used in this tutorial here.
Installing dockerized application with connector
Kindly follow the previous tutorial to locally setup and deploy FarmStack before proceeding with this next step, if not done already.
Installing PrerequisitesClone the FarmStack repository and open in terminal, using following commands:
Open prepareConsumerApp.sh
in scripts
folder in your favorite editor.
Edit the following variable to according to your application:
You can also edit the parameters for the example configuration according to your requirements, but it is advised to leave these variables untouched, unless you know what you're doing.
In the terminal, execute the script from farmstack-open
directory:
This script will create a docker image for your application and modify the required usage control parameters in the example-provider-routes.xml
file.
In the terminal window type the following command to run FarmStack setup:
After the setup is complete, in the browser window, open the installer frontend by typing localhost:8000.
Follow the steps to create your connectors, give a unique name to your connectors such as cities-provider and cities-consumer.
Start the connection by clicking Setup Connection Button.
When the connector setup is done click View transferred data link to see your data. Kindly wait a couple of minutes for the contract negotiation process of provider and consumer to complete before they can start sharing the data.
This completes the tutorial for running the dockerized application with the consumer connector. If you face any issue while running your consumer app kindly open a new issue in the github repository and our experts will guide you.
Last updated