Core Data - Getting Started
Overview
Core Data is one of the core EdgeX Services. It is needed for applications that require Events/Readings to be persisted. For solutions that do not require storage and access to Events and Readings, it is possible to use the EdgeX framework without Core Data.
Running Services with Core Data
The simplest way to run all the required services is to use the Compose Builder tool from a terminal window.
-
Clone https://github.com/edgexfoundry/edgex-compose/tree/v3.1
-
Change to the compose-builder folder
-
Run the services
This runs, in non-secure mode, all the standard EdgeX services, including core-data, along with the Device Virtual. Core Data will use the Redis database as its datastore.make run no-secty ds-virtual
Running Services without Core Data
The simplest way to run all the required services is to use the Compose Builder tool from a terminal window.
-
Clone https://github.com/edgexfoundry/edgex-compose/tree/v3.1
-
Change to the compose-builder folder
-
Generate a compose file
make gen no-secty ds-virtual
- Remove core-data from the compose file and resolve any depends on for core-data.
- Run the compose file.
make up
This runs, in non-secure mode, all the standard EdgeX services, except for core data, along with the Device Virtual.