From c9e49dfb37c5b8b7f60d4859baebf01c2767fc2f Mon Sep 17 00:00:00 2001 From: Andrew Balakirev Date: Mon, 30 Jul 2018 12:51:40 +0300 Subject: [PATCH] Fix DB publisher (#20) * Fix DB publisher * Fix DB publisher --- publisher/Dockerfile | 2 +- publisher/docker-compose.yml | 1 + publisher/start.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 publisher/start.sh diff --git a/publisher/Dockerfile b/publisher/Dockerfile index a26adb6..db708f5 100644 --- a/publisher/Dockerfile +++ b/publisher/Dockerfile @@ -16,4 +16,4 @@ WORKDIR /usr/src/app COPY ./start.sh /usr/src/app/start.sh RUN chmod 755 start.sh -CMD sh start.sh +CMD ./start.sh diff --git a/publisher/docker-compose.yml b/publisher/docker-compose.yml index aa8cee8..45ec774 100644 --- a/publisher/docker-compose.yml +++ b/publisher/docker-compose.yml @@ -13,3 +13,4 @@ services: - DESTINATION_DOCKER_IMAGE=plyo/db:data volumes: - /var/run/docker.sock:/var/run/docker.sock + - ./start.sh:/usr/src/app/start.sh diff --git a/publisher/start.sh b/publisher/start.sh old mode 100644 new mode 100755 index 5afa3c8..223ce10 --- a/publisher/start.sh +++ b/publisher/start.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh docker login -p=${DOCKERHUB_PASS} -u=${DOCKERHUB_LOGIN} docker pull ${POSTGRES_IMAGE}