-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
executable file
·52 lines (43 loc) · 1.28 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM rockylinux:8
RUN \
dnf -y update \
&& dnf install -y wget \
&& dnf install -y curl \
&& dnf install -y jq \
&& dnf install -y vim \
&& dnf install -y sudo \
&& dnf install -y gnupg \
&& dnf install -y openssh-server \
&& dnf install -y openssh-clients \
&& dnf install -y procps-ng \
&& dnf install -y net-tools \
&& dnf install -y iproute \
&& dnf install -y less \
&& dnf install -y watchdog \
&& dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm \
&& dnf -qy module disable postgresql \
&& dnf install -y postgresql16-server \
&& dnf install -y epel-release \
&& dnf install -y libssh2 \
&& dnf install -y pgbackrest \
&& dnf install -y pgbouncer \
&& dnf install -y patroni-etcd \
&& dnf install -y haproxy \
&& dnf install -y pg_repack_16 \
&& dnf install -y pg_top \
&& dnf install -y pg_activity
RUN mkdir -p /pgdata/16/
RUN chown -R postgres:postgres /pgdata
RUN chmod 0700 /pgdata
COPY pg_custom.conf /
COPY pg_hba.conf /
COPY pgsqlProfile /
COPY photos.sql /
COPY id_rsa /
COPY id_rsa.pub /
COPY authorized_keys /
EXPOSE 22 80 443 5432 2379 2380 8432 5000 5001
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
SHELL ["/bin/bash", "-c"]
ENTRYPOINT /entrypoint.sh