Thursday, July 14, 2023
Best practice:
-
Update markdown metadata such as datetime when saving files Introduction | Front Matter
-
Docusaurus refer code snippets from GitHub repositories GitHub - saucelabs/docusaurus-theme-github-codeblock: A Docusaurus v2 plugin that supports referencing code examples from public GitHub repositories.
src/theme/ReferenceCodeBlock/index.tsxloading...
code-snippets/XKeyIn.cpploading...
-
Test-Driven Development mindset involving CI, CD, documentation, iterative deliveries
-
Create a local volume to bind a specific local folder, only available in
Linux
below.
docker volume create --opt type=none --opt o=bind --opt device=/data/volumes/testvol testvol
➜ ~ docker inspect testvol
[
{
"CreatedAt": "2023-07-13T04:36:16Z",
"Driver": "local",
"Labels": {},
"Mountpoint": "/var/lib/docker/volumes/testvol/_data",
"Name": "testvol",
"Options": {
"device": "/data/volumes/testvol",
"o": "bind",
"type": "none"
},
"Scope": "local"
}
In default, the created volume will just sit on /var/lib/docker/volumes
docker volume create defaultvol
➜ ~ docker volume inspect defaultvol
[
{
"CreatedAt": "2023-07-13T04:51:57Z",
"Driver": "local",
"Labels": null,
"Mountpoint": "/var/lib/docker/volumes/defaultvol/_data",
"Name": "defaultvol",
"Options": null,
"Scope": "local"
}
- Proxies Server: Traefik vs NGINIX
Proxies have become an essential networking component and are frequently used with many popular internet services. Proxy servers facilitate requests and responses between end-users and web servers, providing helpful features that augment routing control, privacy, and security. NGINX and Traefik are the most popular tools currently offering proxy functionality. Both solutions can support traditional server-based deployments and containerized application environments, such as Kubernetes. This article will examine both tools in-depth and cover their pros, cons, and distinguishing features.