Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #10 from jholtom-ciena/master
Browse files Browse the repository at this point in the history
Fix Travis-CI
  • Loading branch information
sim51 authored Feb 1, 2020
2 parents 3e1d37c + 46210c5 commit 3dbff54
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:

# Neo4j service
neo4j:
image: neo4j:enterprise
image: neo4j:3.5.14-enterprise
ports:
- "7474:7474"
- "7687:7687"
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker/neo4j/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
echo "~~~"
echo "~ Init database"
echo "~~~"
su-exec neo4j bin/cypher-shell -u neo4j -p admin < /source/scripts/docker/neo4j/initdb.gql
su neo4j -s /bin/bash -c "bin/cypher-shell -u neo4j -p admin < /source/scripts/docker/neo4j/initdb.gql"
23 changes: 18 additions & 5 deletions scripts/docker/postgres/Dockerfile
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM postgres:10 AS fdwPostgres
FROM postgres:10.10 AS fdwPostgres

ENV POSTGRES_USER postgres
ENV POSTGRES_PASSWORD postgres
Expand All @@ -10,16 +10,29 @@ COPY . /neo4j-fdw/source
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
postgresql-server-dev-10 \
python-dev \
python-setuptools \
python-dev \
python-pip \
postgresql-plpython-10 \
git \
libfaketime \
wget \
&& rm -rf /var/lib/apt/lists/*

RUN ["chmod", "+x", "/neo4j-fdw/source/scripts/docker/postgres/init.sh"]
RUN /neo4j-fdw/source/scripts/docker/postgres/init.sh
RUN cp /neo4j-fdw/source/scripts/faketime.sh /docker-entrypoint-initdb.d/

RUN mkdir /tmp/pgdebs \
&& wget --quiet -P /tmp/pgdebs \
https://atalia.postgresql.org/morgue/p/postgresql-10/postgresql-server-dev-10_10.10-1.pgdg90%2B1_amd64.deb \
https://atalia.postgresql.org/morgue/p/postgresql-10/postgresql-plpython-10_10.10-1.pgdg90%2B1_amd64.deb \
https://atalia.postgresql.org/morgue/p/postgresql-10/libpq5_10.10-1.pgdg90%2B1_amd64.deb \
https://atalia.postgresql.org/morgue/p/postgresql-10/libpq-dev_10.10-1.pgdg90%2B1_amd64.deb \
&& apt install -y --allow-downgrades \
/tmp/pgdebs/postgresql-server-dev-10_10.10-1.pgdg90+1_amd64.deb \
/tmp/pgdebs/postgresql-plpython-10_10.10-1.pgdg90+1_amd64.deb \
/tmp/pgdebs/libpq5_10.10-1.pgdg90+1_amd64.deb \
/tmp/pgdebs/libpq-dev_10.10-1.pgdg90+1_amd64.deb
RUN rm -r /tmp/pgdebs

RUN ["chmod", "+x", "/neo4j-fdw/source/scripts/docker/postgres/init.sh"]
RUN /neo4j-fdw/source/scripts/docker/postgres/init.sh
5 changes: 5 additions & 0 deletions scripts/faketime.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1
export FAKETIME_DONT_RESET=1
export FAKETIME="@2019-07-14 17:30:00"

0 comments on commit 3dbff54

Please sign in to comment.