@@ -1007,13 +1007,16 @@ COPY ansible/files/walg_helper_scripts/wal_change_ownership.sh /root/wal_change_
1007
1007
RUN sed -i \
1008
1008
-e "s|#unix_socket_directories = '/tmp'|unix_socket_directories = '/var/run/postgresql'|g" \
1009
1009
-e "s|#session_preload_libraries = ''|session_preload_libraries = 'supautils'|g" \
1010
- -e "s|shared_preload_libraries = '\( .*\) '|shared_preload_libraries = '\1 , orioledb'|" \
1010
+ -e "s|shared_preload_libraries = '\( .*\) '|shared_preload_libraries = '\1 , orioledb'|g" \
1011
+ -e "s|#max_wal_size = 1GB|max_wal_size = 8GB|g" \
1011
1012
-e "s|#include = '/etc/postgresql-custom/supautils.conf'|include = '/etc/postgresql-custom/supautils.conf'|g" \
1012
1013
-e "s|#include = '/etc/postgresql-custom/wal-g.conf'|include = '/etc/postgresql-custom/wal-g.conf'|g" /etc/postgresql/postgresql.conf && \
1013
1014
echo "cron.database_name = 'postgres'" >> /etc/postgresql/postgresql.conf && \
1014
1015
echo "pljava.libjvm_location = '/usr/lib/jvm/java-11-openjdk-${TARGETARCH}/lib/server/libjvm.so'" >> /etc/postgresql/postgresql.conf && \
1015
1016
echo "pgsodium.getkey_script= '/usr/lib/postgresql/${postgresql_major}/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
1016
1017
echo 'auto_explain.log_min_duration = 10s' >> /etc/postgresql/postgresql.conf && \
1018
+ echo "orioledb.main_buffers = 1GB" >> /etc/postgresql/postgresql.conf && \
1019
+ echo "orioledb.undo_buffers = 256MB" >> /etc/postgresql/postgresql.conf && \
1017
1020
useradd --create-home --shell /bin/bash wal-g -G postgres && \
1018
1021
mkdir -p /etc/postgresql-custom && \
1019
1022
chown postgres:postgres /etc/postgresql-custom
@@ -1027,11 +1030,10 @@ COPY ansible/files/stat_extension.sql /docker-entrypoint-initdb.d/migrations/00-
1027
1030
RUN sed -i \
1028
1031
-e "s|su-exec|gosu|g" \
1029
1032
-e "s|PGHOST= PGHOSTADDR=|PGHOST=\$ POSTGRES_HOST|g" \
1030
- /usr/local/bin/docker-entrypoint.sh
1033
+ /usr/local/bin/docker-entrypoint.sh && \
1034
+ mv /usr/local/bin/docker-entrypoint.sh /usr/local/bin/orioledb-entrypoint.sh
1031
1035
1032
- # TODO: support s3 credentials once upstream is tested
1033
- # COPY docker/orioledb/entrypoint.sh /
1034
- # ENTRYPOINT ["/entrypoint.sh"]
1036
+ COPY docker/orioledb/entrypoint.sh /usr/local/bin/docker-entrypoint.sh
1035
1037
1036
1038
HEALTHCHECK --interval=2s --timeout=2s --retries=10 CMD pg_isready -U postgres -h localhost
1037
1039
STOPSIGNAL SIGINT
0 commit comments