-
Notifications
You must be signed in to change notification settings - Fork 77
build from source code using docker image of rockeylinux 9
mikecaat edited this page Feb 13, 2023
·
4 revisions
- Dockerfile
$ cat Dockerfile
FROM rockylinux/rockylinux:9
# proxy settings if you need
# RUN echo "proxy=http://XXX:YYYY" >> /etc/dnf/dnf.conf
# packages
RUN dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm \
epel-release
RUN dnf config-manager --set-enabled crb
RUN dnf update -y && \
dnf install -y rpm-build \
make \
ccache \
git \
postgresql15-server \
postgresql15-devel \
readline-devel \
libselinux-devel \
krb5-devel \
lz4-devel \
libzstd-devel \
pam-devel \
openssl-devel \
lz4-devel \
zlib-devel
# build pg_bulkload
RUN git clone https://github.com/ossc-db/pg_bulkload.git && \
cd pg_bulkload && \
PATH=/usr/pgsql-15/bin:$PATH; make install
CMD /usr/pgsql-15/bin/pg_bulkload --version
- build
# build pg_bulkload
$ docker build -t rockey_build_pg_bulkload .
# check the version
$ docker run rockey_build_pg_bulkload
pg_bulkload 3.1.20