Skip to content

Commit 680cf85

Browse files
author
钟华龙
committed
first commit
0 parents  commit 680cf85

File tree

3,214 files changed

+682617
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,214 files changed

+682617
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vscode

11/debian-10/Dockerfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM docker.io/bitnami/minideb:buster
2+
3+
ENV HOME="/" \
4+
OS_ARCH="amd64" \
5+
OS_FLAVOUR="debian-10" \
6+
OS_NAME="linux"\
7+
TZ=Asia/Shanghai
8+
COPY prebuildfs /
9+
COPY postgresql-repmgr-10.16.0-11-linux-amd64-debian-10/files /opt/qingcloud
10+
COPY gosu-1.12.0-2-linux-amd64-debian-10 /opt/qingcloud
11+
# Install required system packages and dependencies
12+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
13+
RUN echo "deb http://mirrors.aliyun.com/debian/ buster main" > /etc/apt/sources.list
14+
RUN install_packages acl ca-certificates curl gzip libbsd0 libc6 libedit2 libffi6 libgcc1 libgmp10 libgnutls30 libhogweed4 libicu63 libidn2-0 libldap-2.4-2 liblzma5 libnettle6 libp11-kit0 libreadline7 libsasl2-2 libsqlite3-0 libssl1.1 libstdc++6 libtasn1-6 libtinfo6 libunistring2 libuuid1 libxml2 libxslt1.1 locales procps tar zlib1g
15+
RUN chmod g+rwX /opt/qingcloud
16+
RUN localedef -c -f UTF-8 -i en_US en_US.UTF-8
17+
RUN update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX && \
18+
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
19+
RUN echo 'en_GB.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen
20+
RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen
21+
22+
COPY rootfs /
23+
RUN /opt/qingcloud/scripts/postgresql-repmgr/postunpack.sh
24+
RUN /opt/qingcloud/scripts/locales/add-extra-locales.sh
25+
ENV LANG="en_US.UTF-8" \
26+
LANGUAGE="en_US:en" \
27+
NSS_WRAPPER_LIB="/opt/qingcloud/common/lib/libnss_wrapper.so" \
28+
PATH="/opt/qingcloud/postgresql/bin:/opt/qingcloud/repmgr/bin:/opt/qingcloud/common/bin:$PATH" \
29+
LD_LIBRARY_PATH="/opt/qingcloud/postgresql/lib"
30+
31+
EXPOSE 5432
32+
33+
USER 1001
34+
ENTRYPOINT [ "/opt/qingcloud/scripts/postgresql-repmgr/entrypoint.sh" ]
35+
CMD [ "/opt/qingcloud/scripts/postgresql-repmgr/run.sh" ]

11/debian-10/docker-compose.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
version: '2'
2+
services:
3+
pg-0:
4+
image: docker.io/qingcloud/postgresql-repmgr:11
5+
ports:
6+
- 5432
7+
volumes:
8+
- pg_0_data:/qingcloud/postgresql
9+
environment:
10+
- POSTGRESQL_POSTGRES_PASSWORD=adminpassword
11+
- POSTGRESQL_USERNAME=customuser
12+
- POSTGRESQL_PASSWORD=custompassword
13+
- POSTGRESQL_DATABASE=customdatabase
14+
- REPMGR_PASSWORD=repmgrpassword
15+
- REPMGR_PRIMARY_HOST=pg-0
16+
- REPMGR_PRIMARY_PORT=5432
17+
- REPMGR_PARTNER_NODES=pg-0,pg-1:5432
18+
- REPMGR_NODE_NAME=pg-0
19+
- REPMGR_NODE_NETWORK_NAME=pg-0
20+
- REPMGR_PORT_NUMBER=5432
21+
pg-1:
22+
image: docker.io/qingcloud/postgresql-repmgr:11
23+
ports:
24+
- 5432
25+
volumes:
26+
- pg_1_data:/qingcloud/postgresql
27+
environment:
28+
- POSTGRESQL_POSTGRES_PASSWORD=adminpassword
29+
- POSTGRESQL_USERNAME=customuser
30+
- POSTGRESQL_PASSWORD=custompassword
31+
- POSTGRESQL_DATABASE=customdatabase
32+
- REPMGR_PASSWORD=repmgrpassword
33+
- REPMGR_PRIMARY_HOST=pg-0
34+
- REPMGR_PRIMARY_PORT=5432
35+
- REPMGR_PARTNER_NODES=pg-0,pg-1:5432
36+
- REPMGR_NODE_NAME=pg-1
37+
- REPMGR_NODE_NETWORK_NAME=pg-1
38+
- REPMGR_PORT_NUMBER=5432
39+
volumes:
40+
pg_0_data:
41+
driver: local
42+
pg_1_data:
43+
driver: local

11/debian-10/gosu-1.12.0-2-linux-amd64-debian-10/COPYING

Lines changed: 130 additions & 0 deletions
Large diffs are not rendered by default.
Binary file not shown.

11/debian-10/gosu-1.12.0-2-linux-amd64-debian-10/files/common/licenses/gosu-1.12.0.txt

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gosu-1.12.0,GPL3,https://github.com/tianon/gosu/archive/1.12.tar.gz
Binary file not shown.

11/debian-10/postgresql-repmgr-10.16.0-11-linux-amd64-debian-10/COPYING

Lines changed: 130 additions & 0 deletions
Large diffs are not rendered by default.
Binary file not shown.

0 commit comments

Comments
 (0)