wal2json Dockerfile
2021-05-11 03:29
标签:post lists amp contain ica size repos 方便 remove 以下是一个wal2json pg扩展的dockerfile,方便测试使用 此dockerfile ,暂时还没经过完备测试,可能还会有bug, dockerhub 镜像 https://github.com/eulerto/wal2json/releases wal2json Dockerfile 标签:post lists amp contain ica size repos 方便 remove 原文地址:https://www.cnblogs.com/rongfengliang/p/12059009.htmldockerfile
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/
说明
dalongrong/wal2json:1.0
参考资料
上一篇:CSS响应式布局
下一篇:对 JS取模的三点错误认识
文章标题:wal2json Dockerfile
文章链接:http://soscw.com/index.php/essay/84201.html