Training & Tutorials
A quick run through of the training for AnyLog
The previous section covered the different ways a user can download and install AnyLog — whether via Docker / Kubernetes, directly on the machine, via pip or as a service, or using an orchestration tool like IBM’s Open Horizon or ZEDEDA.
This section covers what happens once the AnyLog agent(s) is installed and running.
What’s in This Section
- Basic commands
- Query Data
- Deployment Process
- Deployment Scripts
- Node Configuration Process
- Basic Docker / K8s Commands
Section 12 provides full examples for deploying a local / demo network from start to finish.
The Process
Recap of the previous section:
git clonethe docker-compose repo (or another repo that eases the deployment of AnyLog).- Update the configuration files in the dotenv. There’s a unique dotenv file per AnyLog node type.
- Start the AnyLog agent.
Once a user executes make up on an AnyLog agent, the following steps occur:
- A process (
docker_compose_builder.sh) takes the different parts of the dotenv configuration and the relative path of the configuration file to generate adocker-compose.yml:- Container name — same as
NODE_NAMEif provided, else the directory name is used as the container name. - Container volumes are created if they don’t already exist.
- Networking is configured based on user input, falling back to the operating system’s defaults if no input is provided.
- Container name — same as
docker compose upis executed.- The deployment-scripts repo is downloaded if needed, or reused if it already exists (see the deployment scripts deep dive for the different sourcing strategies).
- The AnyLog agent starts inside the docker container.
What happens inside AnyLog:
- Deployment-scripts shell environment parameters are converted into AnyLog params (e.g.
$NODE_NAME→!node_name). - Based on the node type, a configuration policy is created if one does not already exist.
- The configuration policy is deployed:
- Network connectivity is defined.
- The node policy is defined (if it does not already exist).
- Connections to databases are established as needed.
- Connections to services such as
blockchain syncandrun operatorare established, based on the AnyLog agent type.
Once that’s done, the agent can work independently with the rest of the members in the network.