mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-31 15:48:57 +02:00
Solved ooauth2 bugs and restructured postgres roile to implement extensions used by discourse
This commit is contained in:
22
roles/svc-db-postgres/templates/Dockerfile.j2
Normal file
22
roles/svc-db-postgres/templates/Dockerfile.j2
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM {{ postgres_image }}:{{ postgres_version }}
|
||||
|
||||
{% if postgres_pg_vector_enabled %}
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
git \
|
||||
postgresql-server-dev-all \
|
||||
&& git clone https://github.com/pgvector/pgvector.git /tmp/pgvector \
|
||||
&& cd /tmp/pgvector \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& rm -rf /tmp/pgvector \
|
||||
&& apt-get purge -y --auto-remove git build-essential \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
{% endif %}
|
||||
|
||||
HEALTHCHECK --interval=10s \
|
||||
--timeout=5s \
|
||||
--start-period=15m \
|
||||
--retries=5 \
|
||||
CMD pg_isready -U postgres || exit 1
|
Reference in New Issue
Block a user