Smart Farm Context Provider used within the NGSI-LD Step-by-Step Tutorials
9.4K
Simple nodejs express application for use with the FIWARE Step-by-Step tutorials. Each tutorial consists of a series of exercises to demonstrate the correct use of individual FIWARE components and shows the flow of context data within a simple Smart Solution either by connecting to a series of dummy IoT devices or manipulating the context directly or programmatically.
This application provides various sources of context and demonstrates various aspects of FIWARE To run the application
in debug mode add DEBUG=tutorial:*
WEB_APP_PORT=3000 # Port used by the content provider proxy and web-app for viewingCONTEXT_BROKER=http://orion:1026/v2 - URL of the context broker to update contextNGSI_LD_PREFIX= - Whether to use full URNs for devicesSECURE_ENDPOINTS=true - Enable Keyrock as PDP - default is falseIOTA_HTTP_HOST=iot-agent - The URL of the IoT AgentIOTA_HTTP_PORT=7896 - Port used by the dummy IoT devices to commuicate with the IoT AgentDUMMY_DEVICES_PORT=3001 - Port used by the dummy IoT devices to receive commandsDUMMY_DEVICES_TRANSPORT=HTTP - Default transport used by dummy IoT devices (either HTTP or MQTT)DUMMY_DEVICES_API_KEY=4jggokgpepnvsb2uv4s40d59ov - Device API Key.KEYROCK_URL=http://localhost - URL for Keyrock IDMKEYROCK_IP_ADDRESS=http://172.18.1.5 - IP address for Keyrock IDMKEYROCK_PORT=3005 - Port that Keyrock is listening onKEYROCK_CLIENT_ID=tutorial-dckr-site-0000-xpresswebapp - Client ID for the appliction within keyrockKEYROCK_CLIENT_SECRET=tutorial-dckr-site-0000-clientsecret - Client secret for the appliction within keyrockAUTHZFORCE_URL=http://authzforce - URL for AuthzforceAUTHZFORCE_PORT=8080 - Port that Authzforce is listening onThe Dockerfile associated with this image can be used to build an image in several ways:
Dockerfile retrieves the latest version of the codebase direct from GitHub (the build-arg is
optional):docker build -t fiware/tutorials.NGSI-LD . --build-arg DOWNLOAD=latest
Dockerfile with the build argument
DOWNLOAD=stabledocker build -t fiware/tutorials.NGSI-LD . --build-arg DOWNLOAD=stable
Dockerfile with the build argument DOWNLOAD=<version>docker build -t fiware/tutorials.NGSI-LD . --build-arg DOWNLOAD=1.7.0
GITHUB_ACCOUNT and GITHUB_REPOSITORY
arguments to the docker build command.docker build -t fiware/tutorials.NGSI-LD . --build-arg GITHUB_ACCOUNT=<your account> --build-arg GITHUB_REPOSITORY=<your repo>
Alternatively, if you want to build directly from your own sources, please copy the existing Dockerfile into file the
root of the repository and amend it to copy over your local source using :
COPY context-provider /usr/src/app
Full instructions can be found within the Dockerfile itself.
Content type
Image
Digest
sha256:a13e0f423…
Size
62.6 MB
Last updated
3 days ago
docker pull fiware/tutorials.ngsi-ld