mirror of
https://git.tt-rss.org/fox/ttrss-docker-compose
synced 2025-06-12 09:09:51 +02:00
add dockerhub build with count-bits pgsql
This commit is contained in:
parent
93ddc6684a
commit
39680720f2
4 changed files with 21 additions and 2 deletions
|
@ -5,7 +5,7 @@ version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:12-alpine
|
image: cthulhoo/ttrss-db-pgsql-count-bits:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/postgresql/data
|
- db:/var/lib/postgresql/data
|
||||||
|
|
15
src/db/Dockerfile
Normal file
15
src/db/Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
FROM postgres:11
|
||||||
|
EXPOSE 5432
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get -y install git libpq-dev postgresql-server-dev-11
|
||||||
|
RUN apt-get -y install gcc make
|
||||||
|
|
||||||
|
COPY init-count-bits.sh /docker-entrypoint-initdb.d/
|
||||||
|
|
||||||
|
RUN git clone https://github.com/sldab/count-bits.git /opt/count-bits && \
|
||||||
|
cd /opt/count-bits && \
|
||||||
|
make && \
|
||||||
|
sed -i.bak 's/create_functions: install/create_functions:/' Makefile && \
|
||||||
|
make install
|
||||||
|
|
1
src/db/init-count-bits.sh
Executable file
1
src/db/init-count-bits.sh
Executable file
|
@ -0,0 +1 @@
|
||||||
|
cd /opt/count-bits && make create_functions
|
|
@ -5,7 +5,10 @@ version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:12-alpine
|
image: cthulhoo/ttrss-db-pgsql-count-bits:${BUILD_TAG}
|
||||||
|
build:
|
||||||
|
context:
|
||||||
|
./db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/postgresql/data
|
- db:/var/lib/postgresql/data
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue