mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-24 13:45:32 +03:00
Backported PSSQL 9.3
This commit is contained in:
parent
0449ea49f5
commit
07e754e1c5
@ -1,26 +1,41 @@
|
||||
# vim:set ft=dockerfile:
|
||||
FROM debian:wheezy
|
||||
FROM epicmorg/edge
|
||||
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
####################################################################################################################################
|
||||
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
|
||||
####################################################################################################################################
|
||||
|
||||
RUN groupadd -r postgres && useradd -r -g postgres postgres
|
||||
|
||||
####################################################################################################################################
|
||||
# grab gosu for easy step-down from root
|
||||
####################################################################################################################################
|
||||
|
||||
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -o /usr/local/bin/gosu -SL 'https://github.com/tianon/gosu/releases/download/1.1/gosu' \
|
||||
&& curl -o /usr/local/bin/gosu -SL 'https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64' \
|
||||
&& chmod +x /usr/local/bin/gosu \
|
||||
|
||||
&& apt-get purge -y --auto-remove curl
|
||||
|
||||
####################################################################################################################################
|
||||
# make the "en_US.UTF-8" locale so postgres will be utf-8 enabled by default
|
||||
####################################################################################################################################
|
||||
|
||||
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
|
||||
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
|
||||
ENV LANG en_US.utf8
|
||||
|
||||
RUN apt-key adv --keyserver pgp.mit.edu --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
|
||||
|
||||
####################################################################################################################################
|
||||
# http://apt.postgresql.org/pub/repos/apt/pool/9.3/p/postgresql-9.3/
|
||||
####################################################################################################################################
|
||||
ENV PG_MAJOR 9.3
|
||||
ENV PG_VERSION 9.3.5-1.pgdg70+1
|
||||
ENV PG_VERSION 9.3.25-3.pgdg+1
|
||||
|
||||
RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list
|
||||
RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ sid-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \
|
||||
echo 'deb http://apt.postgresql.org/pub/repos/apt/ sid-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.lis
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y postgresql-common \
|
||||
@ -32,6 +47,7 @@ RUN apt-get update \
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
|
||||
|
||||
|
||||
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
5
postgres/9.3/Makefile
Normal file
5
postgres/9.3/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: pssql
|
||||
pssql:
|
||||
docker build --compress -t epicmorg/postgres:9.3 .
|
||||
docker push epicmorg/postgres:9.3
|
||||
|
Loading…
Reference in New Issue
Block a user