docker

777 make the mounted custom mysql config file my.cnf didn't take effect, 444 fix it when use docker image mariadb

777 make the mounted custom mysql config file my.cnf didn’t take effect, 444 fix it when use docker image mariadb Today I add a custom config file my.cnf and mount it to docker iamge’s /etc/mysql ### Mariadb Container ####################################### mariadb: image: mariadb:10.4 volumes: - ./mariadb:/var/lib/mysql - ./etc/mysql/my.cnf:/etc/mysql/my.cnf environment: - MYSQL_ROOT_PASSWORD=password ports: - 3306:3306 container_name: mariadb restart: always networks: - backend But the config didn’t take effect, after some investigation, I find the permissoin of my file my.cnf is 777 After I change the permission of my.cnf to 0444(chmod 0444 my.cnf), then the config take effect.

google-cloud

Close the cross domain restrict of Chrome on Mac

Create a new user data folder for chrome in ~/Documents mkdir ~/Documents/MyChromeDevUserData Open chrome with above folder open -n /Applications/Google\ Chrome.app/ --args --disable-web-security --user-data-dir=/Users/xyz/Documents/MyChromeDevUserData

Add ssh public key to google cloud

Add ssh public key to google cloud If we use traditional way of adding public key to ~/.ssh/ , it won’t works in google cloud, we must add it throug the google cloud way Open Computer engine, add click Metadata in left menu, then add your public key here then use ssh yourname@**.**.**.** to login remember do not use ssh root@**.**.**.**, you must use the name defined in Metadata, this held me back for a long time.

maridb

777 make the mounted custom mysql config file my.cnf didn't take effect, 444 fix it when use docker image mariadb

777 make the mounted custom mysql config file my.cnf didn’t take effect, 444 fix it when use docker image mariadb Today I add a custom config file my.cnf and mount it to docker iamge’s /etc/mysql ### Mariadb Container ####################################### mariadb: image: mariadb:10.4 volumes: - ./mariadb:/var/lib/mysql - ./etc/mysql/my.cnf:/etc/mysql/my.cnf environment: - MYSQL_ROOT_PASSWORD=password ports: - 3306:3306 container_name: mariadb restart: always networks: - backend But the config didn’t take effect, after some investigation, I find the permissoin of my file my.cnf is 777 After I change the permission of my.cnf to 0444(chmod 0444 my.cnf), then the config take effect.

Personal

Switch from Drupal to Golang

Switch from Drupal to Golang Reason: I have worked as a Drupal developer/contributor for several years(https://www.drupal.org/user/2936003/), I’s a fantastic tool, but its market is smaller and smaller in China. Future I will put my energy in golang and use a new English name Lawxen from now on .(PS: My former name is Kaysenlau and caseylau).