diff --git a/envoy/dep.sh b/envoy/dep.sh index 86ea93c..7c9fdb4 100644 --- a/envoy/dep.sh +++ b/envoy/dep.sh @@ -8,7 +8,7 @@ apk add --virtual build_deps curl make gcc libc-dev readline-dev ncurses-dev apk add unzip outils-md5 -LUAJIT=v2.1-20240815 +LUAJIT=v2.1-20241104 LUAROCKS=3.11.0 # lua-jit https://github.com/openresty/luajit2 diff --git a/nginx/build-mainline.sh b/nginx/build-mainline.sh index c9b74c6..51840f5 100644 --- a/nginx/build-mainline.sh +++ b/nginx/build-mainline.sh @@ -45,7 +45,7 @@ apk update && apk upgrade \ OPENSSL=openssl-3.0.15 JEMALLOC=5.3.0 -LUAJIT=v2.1-20240815 +LUAJIT=v2.1-20241104 mkdir -p /opt/lib-src && cd /opt/lib-src diff --git a/nginx/build-stable.sh b/nginx/build-stable.sh index c31db88..4163b71 100644 --- a/nginx/build-stable.sh +++ b/nginx/build-stable.sh @@ -45,7 +45,7 @@ apk update && apk upgrade \ OPENSSL=openssl-3.0.15 JEMALLOC=5.3.0 -LUAJIT=v2.1-20240815 +LUAJIT=v2.1-20241104 mkdir -p /opt/lib-src && cd /opt/lib-src diff --git a/nginx/runtime.sh b/nginx/runtime.sh index 48d7648..af83a08 100644 --- a/nginx/runtime.sh +++ b/nginx/runtime.sh @@ -29,7 +29,7 @@ apk add --no-cache --virtual .build-deps \ gcc \ libc-dev -LUAJIT=v2.1-20240815 +LUAJIT=v2.1-20241104 LUAROCKS=3.11.1 mkdir -p /tmp/lib-src && cd /tmp/lib-src diff --git a/pg/Dockerfile-14 b/pg/Dockerfile-14 index 7817eb7..60c3acf 100644 --- a/pg/Dockerfile-14 +++ b/pg/Dockerfile-14 @@ -21,7 +21,7 @@ ARG POSTGIS=3.5.0+dfsg-1.pgdg110+1 ARG PGROUTING=3.6.3 ARG TIMESCALE=2.17.1 ARG SP_VAULT=0.2.9 -ARG ZOMBODB=3000.2.6 +ARG ZOMBODB=3000.2.7 ARG PGVECTOR=0.8.0 ARG PG_MQ=1.4.4 ARG PG_HINT_PLAN=14_1_4_3 diff --git a/pg/Dockerfile-15 b/pg/Dockerfile-15 index 4569db5..862b1c8 100644 --- a/pg/Dockerfile-15 +++ b/pg/Dockerfile-15 @@ -21,7 +21,7 @@ ARG POSTGIS=3.5.0+dfsg-1.pgdg110+1 ARG PGROUTING=3.6.3 ARG TIMESCALE=2.17.1 ARG SP_VAULT=0.2.9 -ARG ZOMBODB=3000.2.6 +ARG ZOMBODB=3000.2.7 ARG PGVECTOR=0.8.0 ARG PG_MQ=1.4.4 ARG PG_HINT_PLAN=15_1_5_2 diff --git a/pg/Dockerfile-16 b/pg/Dockerfile-16 index 6decc14..c9eb5b7 100644 --- a/pg/Dockerfile-16 +++ b/pg/Dockerfile-16 @@ -21,7 +21,7 @@ ARG POSTGIS=3.5.0+dfsg-1.pgdg110+1 ARG PGROUTING=3.6.3 ARG TIMESCALE=2.17.1 ARG SP_VAULT=0.2.9 -ARG ZOMBODB=3000.2.6 +ARG ZOMBODB=3000.2.7 ARG PGVECTOR=0.8.0 ARG PG_MQ=1.4.4 ARG PG_HINT_PLAN=16_1_6_1 diff --git a/pg/Dockerfile-17 b/pg/Dockerfile-17 index 1098417..63908ea 100644 --- a/pg/Dockerfile-17 +++ b/pg/Dockerfile-17 @@ -21,7 +21,7 @@ ARG POSTGIS=3.5.0+dfsg-1.pgdg110+1 ARG PGROUTING=3.6.3 ARG TIMESCALE=2.17.1 ARG SP_VAULT=0.2.9 -ARG ZOMBODB=3000.2.6 +ARG ZOMBODB=3000.2.7 ARG PGVECTOR=0.8.0 ARG PG_MQ=1.4.4 ARG PG_HINT_PLAN=17_1_7_0 diff --git a/pg/Dockerfile-dev b/pg/Dockerfile-dev index 01b31cc..2c97d90 100644 --- a/pg/Dockerfile-dev +++ b/pg/Dockerfile-dev @@ -21,7 +21,7 @@ ARG POSTGIS=3.4.2+dfsg-1.pgdg110+1 ARG PGROUTING=3.6.3 ARG TIMESCALE=2.16.1 ARG SP_VAULT=0.2.9 -ARG ZOMBODB=3000.2.6 +ARG ZOMBODB=3000.2.7 ARG PGVECTOR=0.8.0 ARG PG_MQ=1.4.4 ARG PG_HINT_PLAN=15_1_5_1 diff --git a/pg/README.md b/pg/README.md index 6617a83..b5a8f5f 100644 --- a/pg/README.md +++ b/pg/README.md @@ -1,9 +1,18 @@ Source + ``` https://github.com/docker-library/postgres ``` +Reference + +``` +https://pigsty.io/zh/ +https://ext.pigsty.io +``` + Single Node Example + ``` docker run -itd \ --restart always \ @@ -14,14 +23,16 @@ docker run -itd \ ``` PostgREST + ``` -CREATE ROLE web_anon NOLOGIN; -GRANT USAGE ON SCHEMA PUBLIC TO web_anon; +CREATE ROLE web_anon NOLOGIN; +GRANT USAGE ON SCHEMA PUBLIC TO web_anon; GRANT SELECT ON ALL TABLES IN SCHEMA PUBLIC TO web_anon; ``` Extension usage `psql -U postgres` + ``` CREATE EXTENSION IF NOT EXISTS citus @@ -39,11 +50,13 @@ CREATE EXTENSION IF NOT EXISTS pg_cron; ``` citus check node + ``` select master_get_active_worker_nodes(); ``` citus check + ``` set citus.shard_replication_factor = 2; @@ -68,8 +81,9 @@ INSERT INTO "github_events" ("event_id", "event_type", "event_public", "repo_id" ``` For pgml + ``` apt install python3-pip pip3 install xgboost pip3 install lightgbm -``` \ No newline at end of file +```