Category: Rancher 1.6.18
-
Post Views: 15 1. In the shell script, an error is reported at runtime: /config/init/config0.sh line 184 appid unbound variable. as shown in Figure 1 2. Check the shell script, its value is:https://console.${RMT_MAIN_DOMAIN}/ccpauth/wx-msg-event/$APPID$/receive. ${rmt_main_domain} needs to be replaced with: dev.xxx.cn. $appId$ does not need to be replaced, it is left as it is, but now it is treated as a…
-
Post Views: 17 1. In K8s, the container has no restart options, as shown in Figure 1 2. In non-K8s, the container has a restart option, modify the php file before, and the container will automatically take effect after restarting. as shown in Figure 2 3. Edit the php file and output some information, as shown in Figure 3 4.…
-
Post Views: 15 1. When upgrading the container in Rancher, an error is reported: channel_pub_api_cfg_app_avatar_upload_path: unbound variable. as shown in Figure 1 2. View the file: /config/init/config0.sh. 3. Even in Rancher Add environment variables: channel_pub_api_cfg_app_avatar_upload_path_url, channel_pub_api_cfg_app_avatar_upload_path . The same error is still reported. as shown in Figure 2 4. Assign the environment variable in Rancher: channel_pub_api_cfg_app_avatar_upload_path A specific value. The…
-
Post Views: 23 1. At this stage, there is a new requirement, and it is necessary to do some initial data work for the product when deploying the product. Prepare the corresponding SQL file, but for the file path in the MySQL table: /upload/20200817/20203555555373.png. It is stored in NAS storage. rather than the program directory. as shown in Figure 1…
-
Post Views: 15 1. Enter the container that the environment variable has been replaced, a configuration file, which is in line with expectations. as shown in Figure 1 2. Enter a container that has not been replaced with an environment variable, and a configuration file does not meet the expectations. as shown in Figure 2 3. View the logs of…
-
Post Views: 15 1. In Rancher’s volume, add: /webtv:/data. as shown in Figure 1 2. Check the log of the container, and report an error: log_name: unbound variable. as shown in Figure 2 3. Enter the container and view the directory list under /data, which does not meet the expectations. Not mounted successfully. as shown in Figure 3 4. In…
-
Post Views: 50 1. The content of the Dockerfile is as follows 2. Since there are directories in the basic image: /sobey/www, and it is a blank directory, it is no longer needed. The basic image cannot be upgraded for a while, so I decided to delete the folder in the Dockerfile: /sobey. as shown in Figure 1 3. Add…
-
Post Views: 16 1. Edit .gitignore and add /vendor to the git warehouse, as shown in Figure 1 2. Failed to build in Jenkins, check Console output. as shown in Figure 2 3. Docker deployment, delete the composer install. Edit Dockerfile. as shown in Figure 3 4. Build successfully in Jenkins. as shown in Figure 4 5. Failed to start…
-
Post Views: 17 1. Docker deployment, the implementation of Crontab (Bash Sleep) based on Supervisor, to reduce memory usage, refer to:https://www.shuijingwanwq.com/2019/10/12/3555/. /console/controllers/cmcConsoleUserController.php 2. Break ends the execution of the current Foreach structure, that is, each run of the command line, only the user list under the tenant is successfully synchronized. When there are too many tenants, suppose 100 tenants, the…