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 <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 <container-name>
docker restart <container-name>
The user can interact with the running cfm docker container (running cfm-service) to utilize the cli tool.
docker exec -it <container-name> ./cfm-cli <args>
NOTE: cfm-cli <args> usage examples:
docker exec -it cfm-container ./cfm-cli -h
docker exec -it cfm-container ./cfm-cli list appliances
The developer could use the DockerFile as a reference to build a new docker image using a local cfm clone...
cd /path/to/local/cfm
docker build --no-cache -t <new-image-name> -f docker/Dockerfile .
...and then run those changes
docker run --restart unless-stopped --network=host --name <new-container-name> --detach <new-image-name> -webui -verbosity 4