docker update -m 1G mysql8 问题: [root@baccarat ~]# docker update -m 1G mysql8 Error response from daemon: Cannot update container ed135d27bc84bcb2c95ad394eb504807d4da500148e52c85c4a882a4d43b1f5c: Memory limit should be smaller than already set memoryswap limit, update the memoryswap at the same time 12 [root@baccarat ~]# docker update -m 1G mysql8Error response from daemon: Cannot update container ed135d27bc84bcb2c95ad394eb504807d4da500148e52c85c4a882a4d43b1f5c: Memory limit should be smaller than already set memoryswap limit, update the memoryswap at the same time 解决: … Read More
azure DevOps pipeline & sonar 集成备忘 - job: test displayName: 单元测试 dependsOn: dockerimage steps: - task: Maven@3 displayName: 'mvn clean test' inputs: mavenPomFile: 'src/std-provider/pom.xml' goals: test jacoco:report options: '-U -Dmaven.test.failure.ignore=true -Duser.timezone=GMT+8 -Duser.region=CN -Duser.language=zh' publishJUnitResults: true continueOnError: true timeoutInMinutes: 5 - task: SonarQubePrepare@4 inputs: SonarQube: 'sonar_56' scannerMode: 'Other' extraProperties: 'sonar.projectKey=com.telsafe:std-provider' - task: Maven@3 displayName: 'mvn sonar' inputs: mavenPomFile: 'src/std-provider/pom.xml' goals: sonar:sonar options: '-U' sonarQubeRunAnalysis: true continueOnError: true timeoutInMinutes: 5 - task: SonarQubePublish@4 inputs: pollingTimeoutSec: '300' 123456789101112131415161718192021222324252627282930 - job: test displayName: 单元测试 dependsOn: dockerimage steps: - task: Maven@3 displayName: 'mvn clean test' inputs: mavenPomFile: 'src/std-provider/pom.xml' goals: test jacoco:report options: '-U -Dmaven.test.failure.ignore=true -Duser.timezone=GMT+8 -Duser.region=CN -Duser.language=zh' publishJUnitResults: true continueOnError: true timeoutInMinutes: 5 - task: SonarQubePrepare@4 inputs: SonarQube: 'sonar_56' scannerMode: 'Other' extraProperties: 'sonar.projectKey=com.telsafe:std-provider' - task: Maven@3 displayName: 'mvn sonar' inputs: mavenPomFile: 'src/std-provider/pom.xml' goals: sonar:sonar options: '-U' sonarQubeRunAnalysis: true continueOnError: true timeoutInMinutes: 5 - task: SonarQubePublish@4 inputs: pollingTimeoutSec: '300' &… Read More
linux 下备份 mysql 数据库到阿里云 OSS 问题: 解决: #!/bin/bash -e #使用 ./backupdb.sql db1 DBNAME=$1 echo $DBNAME SQLFILE="/var/"${DBNAME}"_b`date +'%Y%m%d%H%M'`.sql" ZIPFILE="$SQLFILE".zip OSSFILE="oss://bucket111/backupdb/`basename $ZIPFILE`" echo $SQLFILE; echo $ZIPFILE; echo $OSSFILE; mysqldump -h 127.0.0.1 -u root --password=123456 -P 3306 $DBNAME > $SQLFILE zip $ZIPFILE $SQLFILE /opt/ossutil cp $ZIPFILE $OSSFILE rm -f $SQLFILE rm -f $ZIPFILE echo "备份成功" 1234567891011121314151617181920 #!/bin/bash -e#使用 ./backupdb.sql db1 DBNAME=$1echo $DBNAMESQLFILE="/var/"${DBNAME}"_b`date +'%Y%m%d%H%M'`.sql"ZIPFILE="$SQLFILE".zipOSSFILE="oss://bucket111/backupdb/`basename $ZIPFILE`"echo $SQLFILE;echo $ZIPFILE;echo $OSSFILE; mysqldump -h 127.0.0.1 -u root --password=123456 -P 3306 $DBNAME > $SQLFILEzip $ZIPFILE $SQLFILE/opt/ossutil cp $ZIPFILE $OSSFILE rm -f $SQLFILErm -f $ZIPFILE echo "备份成功" … Read More