diff --git a/docker/Dockerfile b/docker/Dockerfile index 6e8d098a90..5df5907bc6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,11 +12,11 @@ EXPOSE 11626 VOLUME /data VOLUME /postgresql-unix-sockets +ARG STELLAR_CORE_VERSION + ADD setup / RUN /setup -ARG STELLAR_CORE_VERSION - #install stellar-core RUN wget -qO - https://apt.stellar.org/SDF.asc | apt-key add - RUN echo "deb https://apt.stellar.org ${DISTRO} unstable" | tee -a /etc/apt/sources.list.d/SDF-unstable.list diff --git a/docker/setup b/docker/setup index f606308e20..b2c50639bf 100755 --- a/docker/setup +++ b/docker/setup @@ -11,6 +11,11 @@ apt-get install -y wget curl python-six python3-colorama python3-pip postgresql- pip3 install awscli --upgrade # for uploading history to s3 +# install test dependencies if STELLAR_CORE_VERSION ends with '~buildtests' +if [[ "$STELLAR_CORE_VERSION" == *~buildtests ]]; then + apt-get install -y redis-tools +fi + # purge stuff we don't directly need apt-get purge -y sgml-base ucf gcc g++ xz-utils libpod-latex-perl dbus apt-get autoremove -y