https://ngrok.com/
2021年12月13日 星期一
Mout file nfs
1.
https://www.linode.com/community/questions/17989/why-cant-mysql-access-the-aria-control-file
2.
https://www.akiicat.com/2019/03/09/DevOps/setup-nfs-server/
3. LOCK
https://www.alibabacloud.com/blog/how-can-we-ensure-the-consistency-of-nfs-file-locks_597359
File Locks
File locking is one of the basic features of file systems, and applications use it to control the concurrent file access of other applications. NFS is a standard network file system for UNIX and similar systems. As it has evolved, NFS has gradually gained native support for file locks, commencing with NFSv4. Since its inception in the 1980s, three versions of NFS have been released, which are NFSv2, NFSv3, and NFSv4.
4. docker name mount
https://larrylu.blog/using-volumn-to-persist-data-in-container-a3640cc92ce4
https://dywang.csie.cyut.edu.tw/dywang/docker/node45.html
https://stackoverflow.com/questions/45282608/how-to-directly-mount-nfs-share-volume-in-container-using-docker-compose-v3
https://docs.docker.com/storage/volumes/
https://sysadmins.co.za/create-a-docker-persistent-mysql-service-backed-by-nfs/
mariadb docker separate confing / data
1.
https://peihsinsu.gitbooks.io/docker-note-book/content/common-docker-mysql.html
2.
https://www.796t.com/article.php?id=8113
3. move data
https://www.digitalocean.com/community/tutorials/how-to-change-a-mariadb-data-directory-to-a-new-location-on-centos-7
maraidb lsof lock
1.
https://ephrain.net/linux-%E4%BD%BF%E7%94%A8-lsof-lslocks-fuser-%E6%8C%87%E4%BB%A4%E5%88%97%E5%87%BA%E7%9B%AE%E5%89%8D%E9%8E%96%E5%AE%9A%E4%B8%AD%E7%9A%84-file-locks/
2.
https://stackoverflow.com/questions/49179656/how-can-a-file-lock-be-checked-in-python-on-linux
3. program
https://gavv.github.io/articles/file-locks/
maraidb Setting user
# basic
https://blog.gtwang.org/linux/mysql-create-database-add-user-table-tutorial/
#
https://www.itread01.com/content/1549041846.html
https://webdock.io/en/docs/how-guides/database-guides/how-enable-remote-access-your-mariadbmysql-database
https://mariadb.com/kb/en/configuring-mariadb-for-remote-client-access/
#
http://southmaster.com/article/pub.php?page=red2.php&id=6463
docker entrypoint example in alpine
#################################################3
COPY ./docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
#
#!/bin/sh
echo 'Hello World!'
#################################
## good
Override ENTRYPOINT with docker run
https://phoenixnap.com/kb/docker-run-override-entrypoint
# good 2
https://ithelp.ithome.com.tw/articles/10250988
# ref
https://stackoverflow.com/questions/38905135/why-wont-my-docker-entrypoint-sh-execute
#
https://mileschou.github.io/blog/why-the-entrypoint-not-start-in-docker/
https://stackoverflow.com/questions/42494853/standard-init-linux-go178-exec-user-process-caused-exec-format-error
https://blog.tiger-workshop.com/docker-difference-between-entrypoint-and-cmd/
2021年12月9日 星期四
python test order
https://codereview.stackexchange.com/questions/122532/controlling-the-order-of-unittest-testcases
python decorator
https://www.artima.com/weblogs/viewpost.jsp?thread=240808
https://www.drmaster.com.tw/Bookinfo.asp?BookID=MP12113
python string formater
https://realpython.com/python-string-formatting/
https://stackoverflow.com/questions/17895835/format-strings-and-named-arguments-in-python
2021年12月6日 星期一
docker run on diskless
https://serverfault.com/questions/763805/how-to-place-docker-images-ontop-of-an-nfs-share-in-coreos
https://stackoverflow.com/questions/44942790/docker-error-failed-to-register-layer-symlink/61847010
https://stackoverflow.com/questions/66071815/docker-failed-to-register-layer-symlink-when-custom-data-root-is-set?noredirect=1&lq=1
https://blog.csdn.net/lj6052317/article/details/110095736
https://blog.csdn.net/weiguang1017/article/details/76212203
https://stackoverflow.com/questions/41453263/docker-networking-disabled-warning-ipv4-forwarding-is-disabled-networking-wil
https://newbedev.com/docker-error-failed-to-register-layer-symlink
https://stackoverflow.com/questions/19234831/where-are-docker-images-stored-on-the-host-machine
#good
https://coolshell.cn/articles/17200.html
https://docs.docker.com/storage/storagedriver/select-storage-driver/
https://blog.51cto.com/dengaosky/2062021
https://www.jianshu.com/p/63fdb0c0659c
## other
https://stackoverflow.com/questions/37672018/clean-docker-environment-devicemapper
https://github.com/moby/moby/issues/18867#issuecomment-169020478
https://stackoverflow.com/questions/31620825/usage-of-loopback-devices-is-strongly-discouraged-for-production-use
https://www.itread01.com/content/1547139087.html
https://jasonlee.xyz/docker-storage-drivershe-ding-wei-overlayfs/
https://ithelp.ithome.com.tw/articles/10197423?sc=iThelpR
https://opensource.com/article/20/5/systemd-units
https://blog.51cto.com/daibaiyang119/2160923
https://github.com/moby/moby/issues/21531#issuecomment-204184490
https://unix.stackexchange.com/questions/398304/how-can-i-run-docker-on-diskless-machines
https://unix.stackexchange.com/questions/436643/using-overlay2-on-centos-7-4