-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use named volume instead of bind mount in quickstart
Volume is the preferred method over bind mount (https://docs.docker.com/storage/volumes/) for persistent container data. This also eliminate the need for the ugly chmod hack for elasticsearch and hopefully fix #1650
- Loading branch information
Showing
4 changed files
with
15 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
#!/bin/bash | ||
|
||
export DATA_STORAGE_FOLDER=${DATA_STORAGE_FOLDER:=/tmp/datahub} | ||
mkdir -p ${DATA_STORAGE_FOLDER} | ||
|
||
# https://discuss.elastic.co/t/elastic-elasticsearch-docker-not-assigning-permissions-to-data-directory-on-run/65812/4 | ||
mkdir -p ${DATA_STORAGE_FOLDER}/elasticsearch | ||
sudo chmod 777 ${DATA_STORAGE_FOLDER}/elasticsearch | ||
|
||
docker-compose pull && docker-compose up --build | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
cd $DIR && docker-compose pull && docker-compose -p datahub up --build |