Public Repository

Last pushed: 7 months ago
Short Description
Integration Tests: Java, Gradle, Postgres
Full Description

Useful for performing Gradle builds that include integration tests against a Postgres instance.

Java: 8
Gradle: 3.4.1
Postgres: 9.5

Dockerfile:


FROM gradle:3.5-jdk8

ENV old_user=$USER
USER root
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main" >> /etc/apt/sources.list.d/pgdg.list
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
USER $old_user

RUN apt-get -y update \
  && apt-get install -y postgresql-9.5 postgresql-contrib-9.5 \
    && apt-get install -y sudo \
    && apt-get clean -y \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Docker Pull Command
Owner
eepstein