From 1bf0ff72b40a15d7ab237408cd462d1b7fef8575 Mon Sep 17 00:00:00 2001 From: Kerem Sahin Date: Tue, 10 Sep 2019 17:51:17 -0700 Subject: [PATCH] Doc update: adding docker-compose pull before up to always get the latest version of images --- docker/elasticsearch/README.md | 2 +- docker/frontend/README.md | 2 +- docker/gms/README.md | 2 +- docker/kafka/README.md | 2 +- docker/mae-consumer/README.md | 2 +- docker/mce-consumer/README.md | 2 +- docker/mysql/README.md | 2 +- docker/quickstart/README.md | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docker/elasticsearch/README.md b/docker/elasticsearch/README.md index ef579f800a..f05a4712f9 100644 --- a/docker/elasticsearch/README.md +++ b/docker/elasticsearch/README.md @@ -8,7 +8,7 @@ any modification. Below command will start the Elasticsearch and Kibana containers. `Data Hub` uses Elasticsearch release `5.6.8`. Newer versions of Elasticsearch are not tested and you might experience compatibility issues. ``` -cd docker/elasticsearch && docker-compose up +cd docker/elasticsearch && docker-compose pull && docker-compose up ``` After containers are initialized, we need to create the `dataset` and `users` search indices by running below command: ``` diff --git a/docker/frontend/README.md b/docker/frontend/README.md index 97096dc437..a2c83067c1 100644 --- a/docker/frontend/README.md +++ b/docker/frontend/README.md @@ -12,7 +12,7 @@ This command will build and deploy the image in your local store. ## Run container ``` -cd docker/frontend && docker-compose up +cd docker/frontend && docker-compose pull && docker-compose up ``` This command will start the container. If you have the image available in your local store, this image will be used for the container otherwise it will download the `latest` image from Docker Hub and then start that. diff --git a/docker/gms/README.md b/docker/gms/README.md index df4c3c3d4a..ef5eee54b3 100644 --- a/docker/gms/README.md +++ b/docker/gms/README.md @@ -12,7 +12,7 @@ This command will build and deploy the image in your local store. ## Run container ``` -cd docker/gms && docker-compose up +cd docker/gms && docker-compose pull && docker-compose up ``` This command will start the container. If you have the image available in your local store, this image will be used for the container otherwise it will download the `latest` image from Docker Hub and then start that. diff --git a/docker/kafka/README.md b/docker/kafka/README.md index 1fe35bfcdd..84f56da91f 100644 --- a/docker/kafka/README.md +++ b/docker/kafka/README.md @@ -7,7 +7,7 @@ any modification. ## Run Docker container Below command will start all Kafka related containers. ``` -cd docker/kafka && docker-compose up +cd docker/kafka && docker-compose pull && docker-compose up ``` As part of `docker-compose`, we also initialize a container called `kafka-setup` to create `MetadataAuditEvent` and `MetadataChangeEvent` topics. The only thing this container does is creating Kafka topics after Kafka broker is ready. diff --git a/docker/mae-consumer/README.md b/docker/mae-consumer/README.md index b429b4645f..8dae9bb3ed 100644 --- a/docker/mae-consumer/README.md +++ b/docker/mae-consumer/README.md @@ -12,7 +12,7 @@ This command will build and deploy the image in your local store. ## Run container ``` -cd docker/mae-consumer && docker-compose up +cd docker/mae-consumer && docker-compose pull && docker-compose up ``` This command will start the container. If you have the image available in your local store, this image will be used for the container otherwise it will download the `latest` image from Docker Hub and then start that. diff --git a/docker/mce-consumer/README.md b/docker/mce-consumer/README.md index d3b3d7da60..63411fb2bb 100644 --- a/docker/mce-consumer/README.md +++ b/docker/mce-consumer/README.md @@ -12,7 +12,7 @@ This command will build and deploy the image in your local store. ## Run container ``` -cd docker/mce-consumer && docker-compose up +cd docker/mce-consumer && docker-compose pull && docker-compose up ``` This command will start the container. If you have the image available in your local store, this image will be used for the container otherwise it will download the `latest` image from Docker Hub and then start that. diff --git a/docker/mysql/README.md b/docker/mysql/README.md index 44849f2cbd..d131f68d7b 100644 --- a/docker/mysql/README.md +++ b/docker/mysql/README.md @@ -7,7 +7,7 @@ any modification. ## Run Docker container Below command will start the MySQL container. ``` -cd docker/mysql && docker-compose up +cd docker/mysql && docker-compose pull && docker-compose up ``` An initialization script [init.sql](init.sql) is provided to container. This script initializes `metadata-aspect` table diff --git a/docker/quickstart/README.md b/docker/quickstart/README.md index e3030940ad..8203c19e43 100644 --- a/docker/quickstart/README.md +++ b/docker/quickstart/README.md @@ -1,7 +1,7 @@ # Data Hub Quickstart To start all Docker containers at once, please run below command: ``` -cd docker/quickstart && docker-compose up +cd docker/quickstart && docker-compose pull && docker-compose up ``` After containers are initialized, we need to create the `dataset` and `users` search indices by running below command: ```