Notes regarding the use of Docker for the Composer & Fabric Manager (CFM) Software Suite.
A ready to use docker image for the cfm-service, the cli tool and the webui is released with the github package feature. One can pull the image from the command line:
docker pull ghcr.io/seagate/cfm
If desired, the user can add :vX.X.X
to the end of the command to obtain an older CFM release version.
To enable the webui launching during cfm-service startup, the user must provide the -webui
flag in the command below.
docker run --restart unless-stopped --network=host --name <user-defined-container-name> --detach ghcr.io/seagate/cfm -webui -verbosity 4
By default, the cfm-service will be hosted at port 8080 and the webui will be hosted at port 3000. The user could change the port by input argument -Port and/or -webuiPort. The webui only works with --network=host mode.
The cfm-service runtime logs can be viewed using
docker logs --follow <user-defined-container-name>
docker restart <user-defined-container-name>
The user can start a cfm docker container to use the cli tool to interact with the running cfm-service.
docker run --network=host --entrypoint "/cfm/cfm-cli" cfm <args>
NOTE: Use <args> = "-h" for help
The developer could use the DockerFile as a reference to build a new docker image with local changes
docker build --no-cache -t <user-defined-container-name> -f docker/Dockerfile .