Improve docker performance with `delegated` mount flag (#5760)

This commit is contained in:
Kyle Zhao 2018-04-16 04:56:35 -04:00 committed by Régis Hanol
parent 8a40a1d50a
commit 3e7638e3f5
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ echo "Using data in: ${DATA_DIR}"
mkdir -p "${DATA_DIR}" mkdir -p "${DATA_DIR}"
docker run -d -p 1080:1080 -p 3000:3000 -v "$DATA_DIR:/shared/postgres_data" -v "$SOURCE_DIR:/src" --hostname=discourse --name=discourse_dev --restart=always discourse/discourse_dev:release /sbin/boot docker run -d -p 1080:1080 -p 3000:3000 -v "$DATA_DIR:/shared/postgres_data:delegated" -v "$SOURCE_DIR:/src:delegated" --hostname=discourse --name=discourse_dev --restart=always discourse/discourse_dev:release /sbin/boot
if [ "${initialize}" = "initialize" ]; then if [ "${initialize}" = "initialize" ]; then
echo "Installing gems..." echo "Installing gems..."

View File

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
docker rm -f discourse_dev docker stop discourse_dev && docker rm discourse_dev