Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions 1/trixie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ RUN chmod +x /usr/local/bin/gosu

FROM debian:trixie-slim

COPY --from=builder /var/local/ivorysql /var/local/ivorysql/
COPY --from=builder /usr/local/bin/gosu /usr/local/bin/gosu
RUN useradd -u 1000 ivorysql

COPY --from=builder --chown=ivorysql:ivorysql /var/local/ivorysql /var/local/ivorysql/
COPY --from=builder --chown=ivorysql:ivorysql /usr/local/bin/gosu /usr/local/bin/gosu

ENV IVORY_MAJOR 1
ENV IVORY_VERSION 1.17
ARG USE_CHINA_MIRROR=false
RUN mkdir /docker-entrypoint-initdb.d

RUN useradd -u 1000 ivorysql

# Use China mirror if specified
RUN if [ "$USE_CHINA_MIRROR" = "true" ]; then \
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources ;\
Expand All @@ -137,13 +137,11 @@ RUN apt-get update && \
libldap2 \
libldap2-dev \
libreadline-dev \
libicu-dev && \
libicu-dev \
libossp-uuid-dev && \
apt-get clean


RUN chown -R ivorysql:ivorysql /var/local/ivorysql
RUN chown -R ivorysql:ivorysql /usr/local/bin

ENV PGDATA /var/local/ivorysql/ivorysql-$IVORY_MAJOR/data

# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
Expand Down
14 changes: 6 additions & 8 deletions 3/bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ RUN chmod +x /usr/local/bin/gosu

FROM debian:bookworm-slim

COPY --from=builder /var/local/ivorysql /var/local/ivorysql/
COPY --from=builder /usr/local/bin/gosu /usr/local/bin/gosu
RUN useradd -u 1000 ivorysql

COPY --from=builder --chown=ivorysql:ivorysql /var/local/ivorysql /var/local/ivorysql/
COPY --from=builder --chown=ivorysql:ivorysql /usr/local/bin/gosu /usr/local/bin/gosu

ENV IVORY_MAJOR 3
ENV IVORY_VERSION 3.4
ARG USE_CHINA_MIRROR=false
RUN mkdir /docker-entrypoint-initdb.d

RUN useradd -u 1000 ivorysql

# Use China mirror if specified
RUN if [ "$USE_CHINA_MIRROR" = "true" ]; then \
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources ;\
Expand All @@ -137,13 +137,11 @@ RUN apt-get update && \
libldap-2.5-0 \
libldap2-dev \
libreadline-dev \
libicu-dev && \
libicu-dev \
libossp-uuid-dev && \
apt-get clean


RUN chown -R ivorysql:ivorysql /var/local/ivorysql
RUN chown -R ivorysql:ivorysql /usr/local/bin

ENV PGDATA /var/local/ivorysql/ivorysql-$IVORY_MAJOR/data

# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
Expand Down
14 changes: 6 additions & 8 deletions 3/trixie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ RUN chmod +x /usr/local/bin/gosu

FROM debian:trixie-slim

COPY --from=builder /var/local/ivorysql /var/local/ivorysql/
COPY --from=builder /usr/local/bin/gosu /usr/local/bin/gosu
RUN useradd -u 1000 ivorysql

COPY --from=builder --chown=ivorysql:ivorysql /var/local/ivorysql /var/local/ivorysql/
COPY --from=builder --chown=ivorysql:ivorysql /usr/local/bin/gosu /usr/local/bin/gosu

ENV IVORY_MAJOR 3
ENV IVORY_VERSION 3.4
ARG USE_CHINA_MIRROR=false
RUN mkdir /docker-entrypoint-initdb.d

RUN useradd -u 1000 ivorysql

# Use China mirror if specified
RUN if [ "$USE_CHINA_MIRROR" = "true" ]; then \
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources ;\
Expand All @@ -137,13 +137,11 @@ RUN apt-get update && \
libldap2 \
libldap2-dev \
libreadline-dev \
libicu-dev && \
libicu-dev \
libossp-uuid-dev && \
apt-get clean


RUN chown -R ivorysql:ivorysql /var/local/ivorysql
RUN chown -R ivorysql:ivorysql /usr/local/bin

ENV PGDATA /var/local/ivorysql/ivorysql-$IVORY_MAJOR/data

# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
Expand Down
19 changes: 11 additions & 8 deletions 3/ubi8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,24 @@ RUN ARCH="$(uname -m)"; \

FROM redhat/ubi8:latest

COPY --from=builder /var/local/ivorysql /var/local/ivorysql/
COPY --from=builder /usr/local/bin/gosu /usr/local/bin/gosu
RUN useradd -u 1000 ivorysql

COPY --from=builder --chown=ivorysql:ivorysql /var/local/ivorysql /var/local/ivorysql
COPY --from=builder --chown=ivorysql:ivorysql /usr/local/bin/gosu /usr/local/bin/gosu

ENV IVORY_MAJOR 3
ENV IVORY_VERSION 3.4

RUN mkdir /docker-entrypoint-initdb.d

RUN useradd -u 1000 ivorysql

RUN dnf install -y \
lz4 lz4-devel lz4-libs krb5-devel libxslt-devel libicu-devel && dnf -y clean all
RUN curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo; \
sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo

RUN chown -R ivorysql:ivorysql /var/local/ivorysql
RUN chown -R ivorysql:ivorysql /usr/local/bin
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm; \
dnf install -y lz4 lz4-devel lz4-libs krb5-devel libxslt-devel libicu-devel; \
dnf install -y e2fsprogs-devel libuuid-devel;\
dnf install -y --enablerepo=*ower*ools uuid-devel;\
dnf -y clean all

ENV PGDATA /var/local/ivorysql/ivorysql-$IVORY_MAJOR/data
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
Expand Down
14 changes: 6 additions & 8 deletions 4/bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ RUN chmod +x /usr/local/bin/gosu

FROM debian:bookworm-slim

COPY --from=builder /var/local/ivorysql /var/local/ivorysql/
COPY --from=builder /usr/local/bin/gosu /usr/local/bin/gosu
RUN useradd -u 1000 ivorysql

COPY --from=builder --chown=ivorysql:ivorysql /var/local/ivorysql /var/local/ivorysql/
COPY --from=builder --chown=ivorysql:ivorysql /usr/local/bin/gosu /usr/local/bin/gosu

ENV IVORY_MAJOR 4
ENV IVORY_VERSION 4.6
ARG USE_CHINA_MIRROR=false
RUN mkdir /docker-entrypoint-initdb.d

RUN useradd -u 1000 ivorysql

# Use China mirror if specified
RUN if [ "$USE_CHINA_MIRROR" = "true" ]; then \
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources ;\
Expand All @@ -137,13 +137,11 @@ RUN apt-get update && \
libldap-2.5-0 \
libldap2-dev \
libreadline-dev \
libicu-dev && \
libicu-dev \
libossp-uuid-dev && \
apt-get clean


RUN chown -R ivorysql:ivorysql /var/local/ivorysql
RUN chown -R ivorysql:ivorysql /usr/local/bin

ENV PGDATA /var/local/ivorysql/ivorysql-$IVORY_MAJOR/data

# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
Expand Down
14 changes: 6 additions & 8 deletions 4/trixie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ RUN chmod +x /usr/local/bin/gosu

FROM debian:trixie-slim

COPY --from=builder /var/local/ivorysql /var/local/ivorysql/
COPY --from=builder /usr/local/bin/gosu /usr/local/bin/gosu
RUN useradd -u 1000 ivorysql

COPY --from=builder --chown=ivorysql:ivorysql /var/local/ivorysql /var/local/ivorysql/
COPY --from=builder --chown=ivorysql:ivorysql /usr/local/bin/gosu /usr/local/bin/gosu

ENV IVORY_MAJOR 4
ENV IVORY_VERSION 4.6
ARG USE_CHINA_MIRROR=false
RUN mkdir /docker-entrypoint-initdb.d

RUN useradd -u 1000 ivorysql

# Use China mirror if specified
RUN if [ "$USE_CHINA_MIRROR" = "true" ]; then \
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources ;\
Expand All @@ -137,13 +137,11 @@ RUN apt-get update && \
libldap2 \
libldap2-dev \
libreadline-dev \
libicu-dev && \
libicu-dev \
libossp-uuid-dev && \
apt-get clean


RUN chown -R ivorysql:ivorysql /var/local/ivorysql
RUN chown -R ivorysql:ivorysql /usr/local/bin

ENV PGDATA /var/local/ivorysql/ivorysql-$IVORY_MAJOR/data

# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
Expand Down
19 changes: 11 additions & 8 deletions 4/ubi8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,24 @@ RUN ARCH="$(uname -m)"; \

FROM redhat/ubi8:latest

COPY --from=builder /var/local/ivorysql /var/local/ivorysql/
COPY --from=builder /usr/local/bin/gosu /usr/local/bin/gosu
RUN useradd -u 1000 ivorysql

COPY --from=builder --chown=ivorysql:ivorysql /var/local/ivorysql /var/local/ivorysql
COPY --from=builder --chown=ivorysql:ivorysql /usr/local/bin/gosu /usr/local/bin/gosu

ENV IVORY_MAJOR 4
ENV IVORY_VERSION 4.6

RUN mkdir /docker-entrypoint-initdb.d

RUN useradd -u 1000 ivorysql

RUN dnf install -y \
lz4 lz4-devel lz4-libs krb5-devel libxslt-devel libicu-devel && dnf -y clean all
RUN curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo; \
sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo

RUN chown -R ivorysql:ivorysql /var/local/ivorysql
RUN chown -R ivorysql:ivorysql /usr/local/bin
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm; \
dnf install -y lz4 lz4-devel lz4-libs krb5-devel libxslt-devel libicu-devel; \
dnf install -y e2fsprogs-devel libuuid-devel;\
dnf install -y --enablerepo=*ower*ools uuid-devel;\
dnf -y clean all

ENV PGDATA /var/local/ivorysql/ivorysql-$IVORY_MAJOR/data
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
Expand Down
Loading
Loading