摘要:
Is Docker-Compose Suited For Production? https://vsupalov.com/docker-compose-production/ Hidden Assumptions Production means different things to diffe
阅读全文
posted @ 2023-07-09 23:50
lightsong
阅读(27)
推荐(0)
摘要:
Running Docker Containers as Non-Root User https://www.geeksforgeeks.org/running-docker-containers-as-non-root-user/ By default, Docker Containers run
阅读全文
posted @ 2023-07-09 21:24
lightsong
阅读(76)
推荐(0)
摘要:
SIGHUP https://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html hang up容易让人联想到进程挂起, 实际上这个挂起,是终端挂起。 Macro: int SIGHUP The SIGHUP (“h
阅读全文
posted @ 2023-07-04 15:13
lightsong
阅读(57)
推荐(0)
摘要:
prometheus https://prometheus.io/ 为云监控而生 From metrics to insightPower your metrics and alerting with the leadingopen-source monitoring solution. Prome
阅读全文
posted @ 2023-07-03 17:10
lightsong
阅读(108)
推荐(0)
摘要:
LDAP federation 官网 https://www.keycloak.org/docs/latest/server_admin/#_ldap Keycloak includes an LDAP/AD provider. You can federate multiple different
阅读全文
posted @ 2023-07-02 19:58
lightsong
阅读(255)
推荐(0)
摘要:
prometheus https://prometheus.io/ From metrics to insight Power your metrics and alerting with the leadingopen-source monitoring solution. 架构 https://
阅读全文
posted @ 2023-06-29 14:43
lightsong
阅读(66)
推荐(0)
摘要:
systemd https://systemd.io/ System and Service Manager systemd is a suite of basic building blocks for a Linux system. It provides a system and servic
阅读全文
posted @ 2023-06-21 23:31
lightsong
阅读(169)
推荐(0)
摘要:
OpenStack https://docs.openstack.org/install-guide/get-started-with-openstack.html The OpenStack project is an open source cloud computing platform fo
阅读全文
posted @ 2023-06-20 15:50
lightsong
阅读(72)
推荐(0)
摘要:
RBAC和ABAC https://www.jianshu.com/p/107c50720a6f 面向目标机器的资源。 什么是RBAC? RBAC.png 比如当用户登录某财务管理系统的时候,允许哪些用户访问编辑哪些菜单,允许访问编辑哪些商品资源等,决定这些权限都取决于用户是哪个角色。 在RBAC,
阅读全文
posted @ 2023-06-18 23:37
lightsong
阅读(204)
推荐(0)
摘要:
An Introduction to Kaniko https://www.baeldung.com/ops/kaniko Kaniko is a tool to build container images from a Dockerfile. Unlike Docker, Kaniko does
阅读全文
posted @ 2023-06-18 23:08
lightsong
阅读(66)
推荐(0)
摘要:
An Introduction to Linux Automation, Tools and Techniques https://linuxconfig.org/an-introduction-to-linux-automation-tools-and-techniques In the fast
阅读全文
posted @ 2023-06-18 20:35
lightsong
阅读(75)
推荐(0)
摘要:
journald / rsyslog / syslog https://linuxconfig.org/advanced-logging-and-auditing-on-linux journald 最流行。 journald is now ubiquitous across Linux syste
阅读全文
posted @ 2023-06-18 00:00
lightsong
阅读(151)
推荐(0)
摘要:
What is SELinux? https://www.redhat.com/en/topics/linux/what-is-selinux#overview Overview Security-Enhanced Linux (SELinux) is a security architecture
阅读全文
posted @ 2023-06-17 23:46
lightsong
阅读(44)
推荐(0)
摘要:
概念 https://www.ruanyifeng.com/blog/2019/10/tmux.html SSH 登录后,使用tmux可以保留回话,即使关闭终端。 同一个回话可以被多个终端共享,分享屏幕, 主机开启一个tmux,远程机器SSH登录主机,使用tmux attach此回话。 命令行的典型
阅读全文
posted @ 2023-06-17 18:16
lightsong
阅读(80)
推荐(0)
摘要:
How to enable auto restart of a docker container on system reboot ? https://amalgjose.com/2021/02/12/how-to-enable-auto-restart-of-a-docker-container-
阅读全文
posted @ 2023-06-17 17:57
lightsong
阅读(170)
推荐(0)
摘要:
Linux command line basics: sudo https://www.redhat.com/sysadmin/sudo What is sudo? Sudo stands for "superuser do" and is the master key to your high-p
阅读全文
posted @ 2023-06-16 23:39
lightsong
阅读(55)
推荐(0)
摘要:
logrotate command in Linux with examples https://linuxconfig.org/logrotate In Linux, many applications and system services will store log files. These
阅读全文
posted @ 2023-06-16 23:20
lightsong
阅读(75)
推荐(0)
摘要:
目的 对于使用docker compose启动的容器, 我们可以使用命令诊断其启动的目录。 方法 song@song-VirtualBox:~$ docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES6d4e4431d09d go
阅读全文
posted @ 2023-06-16 14:07
lightsong
阅读(109)
推荐(0)
摘要:
Differences between SysVinit, Upstart and Systemd https://www.computernetworkingnotes.com/linux-tutorials/differences-between-sysvinit-upstart-and-sys
阅读全文
posted @ 2023-06-15 23:23
lightsong
阅读(104)
推荐(0)
摘要:
What is /Dev/Null in Linux? https://www.geeksforgeeks.org/what-is-dev-null-in-linux/ 所有物理设备对应的文件,放在dev目录下。 What is /dev? In the Linux file system, eve
阅读全文
posted @ 2023-06-15 20:36
lightsong
阅读(89)
推荐(0)
摘要:
itertools.groupby https://docs.python.org/3/library/itertools.html#itertools.groupby 此工具需要注意, 连续分组和输入顺序。 Make an iterator that returns consecutive key
阅读全文
posted @ 2023-06-14 23:50
lightsong
阅读(114)
推荐(1)
摘要:
How to Clear Logs of Running Docker Containers https://www.howtogeek.com/devops/how-to-clear-logs-of-running-docker-containers/ Understanding the Prob
阅读全文
posted @ 2023-06-12 10:30
lightsong
阅读(329)
推荐(0)
摘要:
Using Jenkins CI/CD for your NodeJS app https://blog.harveydelaney.com/jenkins-build-test-deploy-node-app/ Jenkinsfile https://github.com/internetarch
阅读全文
posted @ 2023-06-04 22:14
lightsong
阅读(58)
推荐(0)
摘要:
引子 https://github.com/fanqingsong/fastapi-react-postgres-keycloak-sso docker compose 配置文件定义了若干service version: "3" services: nginx: image: nginx:1.17
阅读全文
posted @ 2023-05-16 21:53
lightsong
阅读(101)
推荐(0)
摘要:
Assign permission to user through role and group https://www.keycloak.org/docs/latest/server_admin/#assigning-permissions-using-roles-and-groups Code:
阅读全文
posted @ 2023-05-16 10:53
lightsong
阅读(178)
推荐(0)
摘要:
fastapi-react-postgres-keycloak-sso https://github.com/fanqingsong/fastapi-react-postgres-keycloak-sso version: "3" services: nginx: image: nginx:1.17
阅读全文
posted @ 2023-05-14 20:55
lightsong
阅读(203)
推荐(0)
摘要:
fastapi-keycloak-angular-sso https://github.com/fanqingsong/fastapi-keycloak-angular-sso Keycloak likes to speak SSL, so this sandbox application uses
阅读全文
posted @ 2023-05-11 00:11
lightsong
阅读(228)
推荐(0)
摘要:
dockerfile from as https://juejin.cn/s/dockerfile%20from%20as Demo https://github.com/andreaskring/fastapi-keycloak-angular 分离构建镜像和运行镜像 FROM node:curr
阅读全文
posted @ 2023-05-09 10:00
lightsong
阅读(153)
推荐(0)
摘要:
Keycloak: Requesting Token with Password Grant https://www.appsdeveloperblog.com/keycloak-requesting-token-with-password-grant/ In this tutorial, you
阅读全文
posted @ 2023-05-08 23:30
lightsong
阅读(276)
推荐(0)
摘要:
Keycloak: Authorization Code Grant Example https://www.appsdeveloperblog.com/keycloak-authorization-code-grant-example/ 适合web应用 In this tutorial, you
阅读全文
posted @ 2023-05-08 23:25
lightsong
阅读(700)
推荐(0)
摘要:
jwt https://jwt.io/ JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties. JWT.IO allows
阅读全文
posted @ 2023-05-07 23:51
lightsong
阅读(35)
推荐(0)
摘要:
How to mount a shared folder in VirtualBox https://www.pragmaticlinux.com/2021/02/how-to-mount-a-shared-folder-in-virtualbox/ Background VirtualBox co
阅读全文
posted @ 2023-05-07 21:23
lightsong
阅读(80)
推荐(0)
摘要:
#C. 加工制作模型 【问题描述】 由苏州市科学技术协会创办的公益性质的青少年科学工作室,旨在通过参与、实践、体验的过程培养青少年的动手能力及创新意识。今年的夏令营安排了一个让营员动手实践的活动项目,要求利用该工作室提供的锯床和材料在辅导老师的指导下加工制作出各种不同的模型。 活动时两名营员组成一小
阅读全文
posted @ 2023-04-20 10:05
lightsong
阅读(130)
推荐(0)
摘要:
awesome-compose https://github.com/docker/awesome-compose 对于各种类型的应用,如何使用docker-compose工具封装成可部署应用 docker社区给了封装例子, 在应用本身之外, 需要部署这开发的主要包括两部分: docker file
阅读全文
posted @ 2023-04-20 09:10
lightsong
阅读(83)
推荐(0)
摘要:
#A. 选夏令营旗手 【问题描述】 一年一度的江苏省“信息与未来”小学生夏令营活动又开始了。与每年一样,组织者又设计安排了许多有趣的活动,其中第一项依然是挑选本次夏令营的旗手!由于这是一个非常具有荣誉感的角色,所以报名参加夏令营旗手角逐的营员仍然非常多,营委会于是规定: 将N个人排成一排,编号1~N
阅读全文
posted @ 2023-04-18 22:53
lightsong
阅读(162)
推荐(0)
摘要:
D - Built? https://atcoder.jp/contests/arc076/tasks/arc076_b 思路 https://www.cnblogs.com/siuginhung/p/7751301.html https://www.geeksforgeeks.org/kruska
阅读全文
posted @ 2023-04-17 15:37
lightsong
阅读(38)
推荐(0)
摘要:
C - Cards Query Problem https://atcoder.jp/contests/abc298/tasks/abc298_c 思路 在card入box的过程中, 需要两重统计: 记录box接纳card, 记录此card被box接纳。 Code https://atcoder.j
阅读全文
posted @ 2023-04-16 16:52
lightsong
阅读(46)
推荐(0)
摘要:
B - Coloring Matrix https://atcoder.jp/contests/abc298/tasks/abc298_b 思路 判断A矩阵是否满足条件, 不符合,对A矩阵逆时针旋转, 旋转后对A矩阵继续判断, 直到满足条件,或者A矩阵复位。 Code #include <ioman
阅读全文
posted @ 2023-04-16 16:47
lightsong
阅读(63)
推荐(0)
摘要:
D - Writing a Numeral https://atcoder.jp/contests/abc298/tasks/abc298_d 思路 双端队列, 保证执行插入和删除动作的同时, 动态计算 结果。 模运算 https://www.cnblogs.com/wlw-x/p/11735614
阅读全文
posted @ 2023-04-15 23:45
lightsong
阅读(103)
推荐(0)
摘要:
D. Connected Components https://www.codeforces.com/contest/292/problem/D 思路 由于需要删除任意 连续段的 连接线, 引入前缀和 连续段的左右两边都需要, 所以引入两个前缀和。 https://blog.csdn.net/qq_
阅读全文
posted @ 2023-04-15 11:32
lightsong
阅读(53)
推荐(0)