zoukankan      html  css  js  c++  java
  • wal2json Dockerfile

    以下是一个wal2json pg扩展的dockerfile,方便测试使用

    dockerfile

    FROM postgres:11.2 AS build
    ENV VERSION 1_0
    RUN buildDeps="curl build-essential ca-certificates git pkg-config glib2.0 postgresql-server-dev-$PG_MAJOR" 
        && apt-get update 
        && apt-get install -y --no-install-recommends ${buildDeps} 
        && echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" > /etc/apt/sources.list.d/pgdg.list 
        && curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - 
        && apt-get update 
        && apt-get install -y --no-install-recommends libc++1 postgresql-server-dev-$PG_MAJOR 
        && mkdir -p /tmp/build 
        && curl -o /tmp/build/${VERSIONN}.tar.gz -SL "https://github.com/eulerto/wal2json/archive/wal2json_${VERSION}.tar.gz" 
        && cd /tmp/build/ 
        && tar -xzf /tmp/build/${VERSIONN}.tar.gz -C /tmp/build/ 
        && cd /tmp/build/wal2json-wal2json_${VERSION} 
        && make && make install 
        && cd / 
        && rm -rf /tmp/build 
        && apt-get remove -y --purge ${buildDeps} 
        && apt-get autoremove -y --purge 
        && rm -rf /var/lib/apt/lists/
    RUN echo "max_replication_slots = 1" >> /usr/share/postgresql/postgresql.conf.sample
    RUN echo "wal_level = logical" >> /usr/share/postgresql/postgresql.conf.sample
     

    说明

    此dockerfile ,暂时还没经过完备测试,可能还会有bug, dockerhub 镜像dalongrong/wal2json:1.0

    参考资料

    https://github.com/eulerto/wal2json/releases

  • 相关阅读:
    P1121 环状最大两段子段和
    无题
    cdoj 1485 柱爷搞子串 sam treap
    自然数幂和
    Gym 100341C AVL Trees NTT
    线性筛分解质因子
    codeforces 366 Ant Man dp
    UVALive 6914 Maze Mayhem 轮廓线dp
    hdu 5790 Prefix 字典树 主席树
    莫比乌斯反演个人小结
  • 原文地址:https://www.cnblogs.com/rongfengliang/p/12059009.html
Copyright © 2011-2022 走看看