For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
services: | |
app: | |
volumes: | |
- venv:/opt | |
volumes: | |
venv: | |
driver: local | |
driver_opts: | |
type: none |
ARG PYTHON_VERSION=3.11 | |
ARG ALPINE_VERSION=3.17 | |
ARG POETRY_VERSION=1.3.2 | |
ARG DEVBUILD | |
FROM python:${PYTHON_VERSION}-alpine${ALPINE_VERSION} as build | |
ARG ALPINE_VERSION | |
ARG POETRY_VERSION | |
ARG DEVBUILD | |
RUN echo https://mirror.yandex.ru/mirrors/alpine/v${ALPINE_VERSION}/main > /etc/apk/repositories |
version: '3.8' | |
services: | |
postgres: | |
# image: postgres:10.18-alpine | |
image: postgres:13.4 | |
restart: "no" | |
# Performance tuning by http://pgtune.leopard.in.ua | |
# DB Version: 10 | |
# OS Type: linux |
cd $pkgsrc/bootstrap | |
OSX_SDK_PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk ./bootstrap --unprivileged --full --prefix=/opt/pkg --varbase /opt/pkg/var --make-jobs=10 --prefer-native=yes | |
# set in /opt/pkg/etc/mk.conf | |
# OSX_SDK_PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk | |
# MAKE_JOBS=10 | |
# cyrus-sasl | |
cd $pkgsrc/net/libfetch |
package heap | |
import ( | |
"math" | |
) | |
type Interface interface { | |
Len() int | |
Less(i, j int) bool | |
Swap(i, j int) |
type GormTx struct { | |
stack []*gorm.DB | |
open int | |
clos int | |
} | |
func NewTransaction(db *gorm.DB) *GormTx { | |
return &GormTx{ | |
stack: []*gorm.DB{db}, | |
open: 0, |
free -m | grep Mem | awk '{print $2}' |
redis-cli -p $1 -a $(grep -Po '(?<=^masterauth\s).*' ${2:-/etc/redis.conf} | sed 's/^\"//g' | sed 's/\"$//g') info | grep maxmemory_human |
kernel: | |
image: linuxkit/kernel:5.4.39 | |
cmdline: "console=ttyS0" | |
init: | |
- linuxkit/init:a68f9fa0c1d9dbfc9c23663749a0b7ac510cbe1c | |
- linuxkit/runc:v0.8 | |
- linuxkit/containerd:a4aa19c608556f7d786852557c36136255220c1f | |
- linuxkit/ca-certificates:v0.8 | |
onboot: | |
- name: sysctl |