[ADD]Flectra : two images for PostgreSQL 9.6 and 10

This commit is contained in:
Fabien BOURGEOIS 2018-11-15 12:24:59 +01:00
parent fe3ff6b90b
commit 4abb6bf62e
2 changed files with 23 additions and 1 deletions

View File

@ -125,7 +125,7 @@ services:
build:
context: ./flectra
dockerfile: Dockerfile
image: registry.yaltik.net/flectra:yaltik1
image: registry.yaltik.net/flectra:yaltik1pg96
environment:
DB_MAXCONN: 20
XMLRPC_PORT: 8069
@ -138,6 +138,16 @@ services:
POSTGRES_USER: flectra
POSTGRES_PASSWORD: somethingToChange
flectrapg10:
init: true
extends:
file: base.yml
service: flectra
build:
context: ./flectra
dockerfile: Dockerfile.pg10
image: registry.yaltik.net/flectra:yaltik1pg10
odoocmd:
build:
context: ./scripts

View File

@ -0,0 +1,12 @@
FROM registry.yaltik.net/flectra:yaltik1pg96
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
USER root
# PostgreSQL 10.x
RUN apt-get update && apt-get install -y --no-install-recommends gnupg
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" \
> /etc/apt/sources.list.d/postgresql.list \
&& curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get update \
&& apt-get install -y libpq-dev postgresql-client-10
USER flectra