Hi, friends Does anyone use docker to deploy cloudstack-management in production?
In order to facilitate rapid deployment, I plan to run cloudstack-management and cloudstack-usage in docker. Deploy and test by the following deployment methods: 1. Encapsulation based on centos: centos7 image 2. Use yum to install cloudstack-management, cloudstack-usage, supervisor 3. Use the script to initialize the cloudstack-setup-database at startup 4. Use supervisor to start cloudstack-management and cloudstack-usage The startup script is as follows [program:cloudstack] command=/usr/bin/java -Djava.security.properties=/etc/cloudstack/management/java.security.ciphers -Djava.awt.headless=true -Dcom.sun.management.jmxremote=false -Xmx2G -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/cloudstack/management/ -XX:ErrorFile=/var/log/cloudstack/management/cloudstack-management.err -cp /usr/share/cloudstack-management/lib/*:/etc/cloudstack/management:/usr/share/cloudstack-common:/usr/share/cloudstack-management/setup:/usr/share/cloudstack-management:/usr/share/java/mysql-connector-java.jar org.apache.cloudstack.ServerDaemon directory=/var/cloudstack/management stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 user=root [program:usage] command=/usr/bin/java -Xms256m -Xmx2048m -cp /usr/share/cloudstack-usage/*:/usr/share/cloudstack-usage/lib/*:/usr/share/cloudstack-mysql-ha/lib/*:/etc/cloudstack/usage:/usr/share/java/mysql-connector-java.jar com.cloud.usage.UsageServer directory=/var/cloudstack/management stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 user=root When I use the root identity to run the cloudstack service to start, acs will prompt the following information, "Systemvm keypairs could not be set. Management server should be run as cloud user, or in development mode." Since the key is not injected into systemvm.iso, it causes the following SSVM and CPVM to fail to complete SSL verification with the management. When I use the cloud identity to run the cloudstack service to start, acs will prompt the following information 2020-05-30 23: 03: 35,852 INFO [c.c.s.ConfigurationServerImpl] (main: null) (logid :) Injected public and private keys into systemvm iso with result: mkdir: cannot create directory '/ root': Permission denied Dear friends, if you have any experience in this area, please share. thank you very much! -Jerry