Skip to content

Commit

Permalink
#1195 added Postgres configuration in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tannakartikey authored and rultor committed Oct 27, 2017
1 parent 2f1a7a1 commit 8f1d38f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ RUN rm -rf /usr/lib/node_modules
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs

# Postgres
RUN apt-get install -y postgresql postgresql-contrib libpq-dev
USER postgres
RUN /etc/init.d/postgresql start &&\
psql --command "CREATE USER rultor WITH SUPERUSER PASSWORD 'rultor';" &&\
createdb -O rultor rultor
RUN echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/9.3/main/pg_hba.conf
RUN echo "listen_addresses='*'" >> /etc/postgresql/9.3/main/postgresql.conf
EXPOSE 5432
USER root
# Postgresql service has to be started using `sudo /etc/init.d/postgresql start` in .rultor.yml

# Maven
ENV MAVEN_VERSION 3.3.9
ENV M2_HOME "/usr/local/apache-maven/apache-maven-${MAVEN_VERSION}"
Expand Down

2 comments on commit 8f1d38f

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 8f1d38f Oct 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 594-7fd8c4ec disappeared from src/test/java/com/rultor/agents/req/StartsRequestTest.java, that's why I closed #633.

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 8f1d38f Oct 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 1018-15a5404e disappeared from src/test/java/com/rultor/agents/daemons/StartsDaemonITCase.java, that's why I closed #1053.

Please sign in to comment.