ghcr.io/abcfy2/zhparser:15 linux/amd64

ghcr.io/abcfy2/zhparser:15 - 国内下载镜像源 浏览次数:23

ghcr.io/abcfy2/zhparser

这是一个用于解析中文文本的 Docker 容器镜像。

源镜像 ghcr.io/abcfy2/zhparser:15
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/abcfy2/zhparser:15
镜像ID sha256:8c251f0565631a7fd0630495b40f8df993bcf670a5813891444875a476b2100e
镜像TAG 15
大小 442.54MB
镜像源 ghcr.io
CMD postgres
启动入口 docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 23 次
贡献者
镜像创建 2024-10-31T05:41:42.880290772Z
同步时间 2024-11-07 09:15
更新时间 2024-11-21 22:39
开放端口
5432/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/15/bin GOSU_VERSION=1.17 LANG=en_US.utf8 PG_MAJOR=15 PG_VERSION=15.8-1.pgdg120+1 PGDATA=/var/lib/postgresql/data
镜像标签
Feng Yu<abcfy2@163.com>: org.opencontainers.image.authors
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 12.7 扫描引擎: Trivy 扫描时间: 2024-11-07 09:15

低危漏洞:113 中危漏洞:39 高危漏洞:42 严重漏洞:4

Docker拉取命令 无权限下载?点我修复

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/abcfy2/zhparser:15
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/abcfy2/zhparser:15  ghcr.io/abcfy2/zhparser:15

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/abcfy2/zhparser:15
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/abcfy2/zhparser:15  ghcr.io/abcfy2/zhparser:15

Shell快速替换命令

sed -i 's#ghcr.io/abcfy2/zhparser:15#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/abcfy2/zhparser:15#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/abcfy2/zhparser:15 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/abcfy2/zhparser:15  ghcr.io/abcfy2/zhparser:15'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/abcfy2/zhparser:15 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/abcfy2/zhparser:15  ghcr.io/abcfy2/zhparser:15'

镜像历史

大小 创建时间 层信息
329.00B 2024-10-31 13:41:42 RUN |1 USE_CHINA_MIRROR=0 /bin/sh -c echo "CREATE EXTENSION IF NOT EXISTS pg_trgm;\nCREATE EXTENSION IF NOT EXISTS zhparser;\nDO\n\$\$BEGIN\n CREATE TEXT SEARCH CONFIGURATION chinese_zh (PARSER = zhparser);\n ALTER TEXT SEARCH CONFIGURATION chinese_zh ADD MAPPING FOR n,v,a,i,e,l,t WITH simple;\nEXCEPTION\n WHEN unique_violation THEN\n NULL; -- ignore error\nEND;\$\$;\n" > /docker-entrypoint-initdb.d/init-zhparser.sql # buildkit
17.06MB 2024-10-31 13:41:42 RUN |1 USE_CHINA_MIRROR=0 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends gcc make libc6-dev curl bzip2 apt-transport-https ca-certificates && if grep -q "deb-src" /etc/apt/sources.list.d/pgdg.list > /dev/null; then echo "deb [trusted=yes] https://apt.fury.io/abcfy2/ /" >/etc/apt/sources.list.d/fury.list; apt-get update; fi && LIBPQ5_VER="$(dpkg-query --showformat='${Version}' --show libpq5)" && apt-get install -y libpq-dev=$LIBPQ5_VER postgresql-server-dev-$PG_MAJOR=$PG_VERSION && curl -sSkLf "http://www.xunsearch.com/scws/down/scws-1.2.3.tar.bz2" | tar xjf - && ZHPARSER_URL="https://github.com/amutu/zhparser/archive/master.tar.gz" && if [ x"${USE_CHINA_MIRROR}" = x1 ]; then ZHPARSER_URL="https://mirror.ghproxy.com/${ZHPARSER_URL}"; fi && curl -sSkLf "${ZHPARSER_URL}" | tar xzf - && cd scws-1.2.3 && ./configure && make -j$(nproc) install V=0 && cd /zhparser-master && make -j$(nproc) install && apt-get purge -y gcc make libc6-dev curl bzip2 apt-transport-https ca-certificates libpq-dev=$LIBPQ5_VER postgresql-server-dev-$PG_MAJOR=$PG_VERSION && apt-get autoremove --purge -y && rm -rf /zhparser-master /scws-1.2.3 /etc/apt/sources.list.d/fury.list /var/lib/apt/lists/* # buildkit
0.00B 2024-10-31 13:39:42 RUN |1 USE_CHINA_MIRROR=0 /bin/sh -c if [ x"${USE_CHINA_MIRROR}" = x1 ]; then for f in /etc/apt/sources.list /etc/apt/sources.list.d/debian.sources; do if [ -f "${f}" ]; then sed -i 's/deb.debian.org/mirror.sjtu.edu.cn/;s/security.debian.org/mirror.sjtu.edu.cn/' "${f}"; fi done && sed -i 's@apt.postgresql.org/pub@mirrors.cloud.tencent.com/postgresql@' /etc/apt/sources.list.d/pgdg.list; fi # buildkit
0.00B 2024-10-31 13:39:42 ARG USE_CHINA_MIRROR=0
0.00B 2024-10-31 13:39:42 LABEL org.opencontainers.image.authors=Feng Yu<abcfy2@163.com>
0.00B 2024-08-09 01:06:32 CMD ["postgres"]
0.00B 2024-08-09 01:06:32 EXPOSE map[5432/tcp:{}]
0.00B 2024-08-09 01:06:32 STOPSIGNAL SIGINT
0.00B 2024-08-09 01:06:32 ENTRYPOINT ["docker-entrypoint.sh"]
23.00B 2024-08-09 01:06:32 RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
14.96KB 2024-08-09 01:06:32 COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
0.00B 2024-08-09 01:06:32 VOLUME [/var/lib/postgresql/data]
0.00B 2024-08-09 01:06:32 RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
0.00B 2024-08-09 01:06:32 ENV PGDATA=/var/lib/postgresql/data
0.00B 2024-08-09 01:06:32 RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
59.42KB 2024-08-09 01:06:32 RUN /bin/sh -c set -eux; dpkg-divert --add --rename --divert "/usr/share/postgresql/postgresql.conf.sample.dpkg" "/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample"; cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; ln -sv ../postgresql.conf.sample "/usr/share/postgresql/$PG_MAJOR/"; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample # buildkit
308.17MB 2024-08-09 01:06:32 RUN /bin/sh -c set -ex; export PYTHONDONTWRITEBYTECODE=1; dpkgArch="$(dpkg --print-architecture)"; aptRepo="[ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main $PG_MAJOR"; case "$dpkgArch" in amd64 | arm64 | ppc64el | s390x) echo "deb $aptRepo" > /etc/apt/sources.list.d/pgdg.list; apt-get update; ;; *) echo "deb-src $aptRepo" > /etc/apt/sources.list.d/pgdg.list; savedAptMark="$(apt-mark showmanual)"; tempDir="$(mktemp -d)"; cd "$tempDir"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev; echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list; _update_repo() { dpkg-scanpackages . > Packages; apt-get -o Acquire::GzipIndexes=false update; }; _update_repo; nproc="$(nproc)"; export DEB_BUILD_OPTIONS="nocheck parallel=$nproc"; apt-get build-dep -y postgresql-common pgdg-keyring; apt-get source --compile postgresql-common pgdg-keyring; _update_repo; apt-get build-dep -y "postgresql-$PG_MAJOR=$PG_VERSION"; apt-get source --compile "postgresql-$PG_MAJOR=$PG_VERSION"; apt-mark showmanual | xargs apt-mark auto > /dev/null; apt-mark manual $savedAptMark; ls -lAFh; _update_repo; grep '^Package: ' Packages; cd /; ;; esac; apt-get install -y --no-install-recommends postgresql-common; sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf; apt-get install -y --no-install-recommends "postgresql-$PG_MAJOR=$PG_VERSION" ; rm -rf /var/lib/apt/lists/*; if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove; rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi; find /usr -name '*.pyc' -type f -exec bash -c 'for pyc; do dpkg -S "$pyc" &> /dev/null || rm -vf "$pyc"; done' -- '{}' +; postgres --version # buildkit
0.00B 2024-08-09 01:06:32 ENV PG_VERSION=15.8-1.pgdg120+1
0.00B 2024-08-09 01:06:32 ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/15/bin
0.00B 2024-08-09 01:06:32 ENV PG_MAJOR=15
3.98KB 2024-08-09 01:06:32 RUN /bin/sh -c set -ex; key='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'; export GNUPGHOME="$(mktemp -d)"; mkdir -p /usr/local/share/keyrings/; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; gpg --batch --export --armor "$key" > /usr/local/share/keyrings/postgres.gpg.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" # buildkit
0.00B 2024-08-09 01:06:32 RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
3.18MB 2024-08-09 01:06:32 RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libnss-wrapper xz-utils zstd ; rm -rf /var/lib/apt/lists/* # buildkit
0.00B 2024-08-09 01:06:32 ENV LANG=en_US.utf8
25.19MB 2024-08-09 01:06:32 RUN /bin/sh -c set -eux; if [ -f /etc/dpkg/dpkg.cfg.d/docker ]; then grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; sed -ri '/\/usr\/share\/locale/d' /etc/dpkg/dpkg.cfg.d/docker; ! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; fi; apt-get update; apt-get install -y --no-install-recommends locales; rm -rf /var/lib/apt/lists/*; echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen; locale-gen; locale -a | grep 'en_US.utf8' # buildkit
4.16MB 2024-08-09 01:06:32 RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends ca-certificates wget; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
0.00B 2024-08-09 01:06:32 ENV GOSU_VERSION=1.17
9.93MB 2024-08-09 01:06:32 RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends gnupg less ; rm -rf /var/lib/apt/lists/* # buildkit
4.32KB 2024-08-09 01:06:32 RUN /bin/sh -c set -eux; groupadd -r postgres --gid=999; useradd -r -g postgres --uid=999 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
0.00B 2024-08-09 01:06:32 /bin/sh -c #(nop) CMD ["bash"]
74.78MB 2024-08-09 01:06:32 /bin/sh -c #(nop) ADD file:90b9dd8f12120e8b2cd3ece45fcbe8af67e40565e2032a40f64bd921c43e2ce7 in /

镜像信息

{
    "Id": "sha256:8c251f0565631a7fd0630495b40f8df993bcf670a5813891444875a476b2100e",
    "RepoTags": [
        "ghcr.io/abcfy2/zhparser:15",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/abcfy2/zhparser:15"
    ],
    "RepoDigests": [
        "ghcr.io/abcfy2/zhparser@sha256:eacaeb5c0026ee668db6f29d2c0bc56cd50e9e9d01b84cbd039863ed7d46eed8",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/abcfy2/zhparser@sha256:1da44e8bd3cf8acc7cdae92b02c16f3d4bde59912a23fef96703a31e01a51396"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-10-31T05:41:42.880290772Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "5432/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/15/bin",
            "GOSU_VERSION=1.17",
            "LANG=en_US.utf8",
            "PG_MAJOR=15",
            "PG_VERSION=15.8-1.pgdg120+1",
            "PGDATA=/var/lib/postgresql/data"
        ],
        "Cmd": [
            "postgres"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/var/lib/postgresql/data": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "org.opencontainers.image.authors": "Feng Yu\u003cabcfy2@163.com\u003e"
        },
        "StopSignal": "SIGINT"
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 442537637,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/935dde2929ef9ef54de82f7cfe4fde68e0fbe8535da9d75eb0b40809aaf99d35/diff:/var/lib/docker/overlay2/3e04a738ebcb4b0e3c4ed3a0f498bff5a16f65a2032f2226c104513dc099002d/diff:/var/lib/docker/overlay2/d3a578d29c56e43ba44e7ef630563dd2da7c8f5e619ef950fe37e3dc4e98987f/diff:/var/lib/docker/overlay2/7c87a8f51797c9a8344a5a3ca30a2c8be8e8627b3c722785ff1263e733ef9815/diff:/var/lib/docker/overlay2/8dd6df03d13de10d4c967251e4ba77cdb7f84fec3e4ab078ce3346c531bc2edf/diff:/var/lib/docker/overlay2/b0c73dbb53aa2b37735c10d2749ad6d9cccb28813f3f60a3d215224142d0d847/diff:/var/lib/docker/overlay2/eff0e47dfe00ca75bc36ccabab83d2418c9cd45bcf850f2bac466dbba63b8d90/diff:/var/lib/docker/overlay2/63f4c1810580c62ba0275e474fe81ea19271ad8fb69a2418a9e8d50a3e74f5ba/diff:/var/lib/docker/overlay2/96f6b03af2bf3f614cc4b9a023e8f9c9cda2705147b35af7ceb5b2742a072403/diff:/var/lib/docker/overlay2/7b48193aff3e796d1b32c29ec1f5cbbbc9260e66857deb629806e86ceea49a96/diff:/var/lib/docker/overlay2/08cff3cedbe2333135b09b9e1a43d0abfc34a2d956b99181468c46744301c7c4/diff:/var/lib/docker/overlay2/5307d62ab40d5ec47ac826498cd8c8d3ddd8bb796a05c997983a91a18dfdd8a3/diff:/var/lib/docker/overlay2/c8b7d3139d3fd5c3ba4bfeef1b969374aeb81259c084c8cbec3ada83e8013c80/diff:/var/lib/docker/overlay2/5261a06bcfd6ada72ba3a9369a7b77dee269a1d6991ad12dfb9fcb7384a0067c/diff:/var/lib/docker/overlay2/81b6976d7bf2f8dfb60771ec83a8c8dad6279e43ebd84d3ead9c47884e9e57ac/diff:/var/lib/docker/overlay2/640dc40711366eefdc38587353d7800897ec5b45fb0486472d1bbe1802e322be/diff",
            "MergedDir": "/var/lib/docker/overlay2/645762fafa781d73d62515ac173d47026f6a852e0a75faab98273f727438dc39/merged",
            "UpperDir": "/var/lib/docker/overlay2/645762fafa781d73d62515ac173d47026f6a852e0a75faab98273f727438dc39/diff",
            "WorkDir": "/var/lib/docker/overlay2/645762fafa781d73d62515ac173d47026f6a852e0a75faab98273f727438dc39/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:98b5f35ea9d3eca6ed1881b5fe5d1e02024e1450822879e4c13bb48c9386d0ad",
            "sha256:37eda44c63838943e3b065a3effaa1fb589b82a4b4abba68eb1262d37058488a",
            "sha256:4d019bc91c7d7ee100f518d35cf9138accdd2282441e2b2a4947df3607b63588",
            "sha256:89d838eb2b835594db51653fd677e6940f8fa001fbabb739293bbcc9e93498f8",
            "sha256:c90f9c5ae1ab7566d4e1da607b493df3e8686699c220d4575b908fcf315b710d",
            "sha256:58be57ef77b60fa9af4defa6410fbd06ab1f96f24cb8976210fe5adabc54e9c3",
            "sha256:000630e5739ee818a618831f0202d65485fafbd0eb44dbeef82cbc02b7f1c61b",
            "sha256:c271943f477d852cb5da939a7a9367664097dd87b4748bfed394f9e033ee4ef0",
            "sha256:d42d7a71c645aadcecd1bd22146853a5509a403e6a0796603d04aa5d8da85551",
            "sha256:4a8a384b975b1d4308c49b2c494920641e77b27b1630b29cf7410d04a5a41d59",
            "sha256:16eff36c9492180d1f741a8764be87999bce519576497bcd806e280d00e53c3d",
            "sha256:92aabac161f3f3b27a55b9b68b80892eaec48de61493210ff895c25eb21c653f",
            "sha256:eb3ea0e60006aa7cc986f0ab512e175ee3eb88d70ae933b4d6e6b677f62fb84b",
            "sha256:1d3b47f51f32963ae4d2984c5d643662fd304545e335fdaf4dde75fe98aa8a03",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:1478f934ed4c75e97cb6eada15d51bb9f20679e58255699ce5dcc65da2b13b75",
            "sha256:4026e662055a6dd50904ee07cad15e7cdeff7d9cde2a440b0ef6df5df70040b4"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-11-07T09:15:22.279648869+08:00"
    }
}

更多版本

ghcr.io/abcfy2/zhparser:15

linux/amd64 ghcr.io442.54MB2024-11-07 09:15
22