Commit a0d3ce7d by Clinton Blackburn Committed by Clinton Blackburn

Updated for compatibility with Docker Sync 0.4.2

- Replaced calls to docker-sync-daemon with docker-sync, which is now daemon by default
- Moved from rsync strategy to native_osx, which is the new default
- Using :nocopy to avoid issues when syncing to named volumes

Fixes #110
parent 2f48bd67
...@@ -28,7 +28,7 @@ dev.up: ## Bring up all services with host volumes ...@@ -28,7 +28,7 @@ dev.up: ## Bring up all services with host volumes
docker-compose -f docker-compose.yml -f docker-compose-host.yml up -d docker-compose -f docker-compose.yml -f docker-compose-host.yml up -d
dev.sync.daemon.start: ## Start the docker-sycn daemon dev.sync.daemon.start: ## Start the docker-sycn daemon
docker-sync-daemon start docker-sync start
dev.sync.provision: | dev.sync.daemon.start dev.provision ## Provision with docker-sync enabled dev.sync.provision: | dev.sync.daemon.start dev.provision ## Provision with docker-sync enabled
...@@ -42,11 +42,11 @@ provision: ## Provision all services using the Docker volume ...@@ -42,11 +42,11 @@ provision: ## Provision all services using the Docker volume
./provision.sh ./provision.sh
stop: ## Stop all services stop: ## Stop all services
(test -d .docker-sync && docker-sync-daemon stop) || true ## Ignore failure here (test -d .docker-sync && docker-sync stop) || true ## Ignore failure here
docker-compose stop docker-compose stop
down: ## Remove all service containers and networks down: ## Remove all service containers and networks
test -d .docker-sync && docker-sync-daemon clean test -d .docker-sync && docker-sync clean
docker-compose down docker-compose down
destroy: ## Remove all devstack-related containers, networks, and volumes destroy: ## Remove all devstack-related containers, networks, and volumes
......
...@@ -8,8 +8,8 @@ then ...@@ -8,8 +8,8 @@ then
echo echo
if [[ "$OSTYPE" == "darwin"* ]]; then if [[ "$OSTYPE" == "darwin"* ]]; then
set +e set +e
docker-sync-daemon stop docker-sync stop
docker-sync-daemon clean docker-sync clean
set -e set -e
fi fi
docker-compose down -v docker-compose down -v
......
...@@ -3,7 +3,7 @@ version: "2.1" ...@@ -3,7 +3,7 @@ version: "2.1"
services: services:
marketing: marketing:
volumes: volumes:
- marketing-sync:/var/www/html:rw - marketing-sync:/var/www/html:nocopy
volumes: volumes:
marketing-sync: marketing-sync:
......
...@@ -3,19 +3,19 @@ version: "2.1" ...@@ -3,19 +3,19 @@ version: "2.1"
services: services:
credentials: credentials:
volumes: volumes:
- credentials-sync:/edx/app/credentials/credentials:rw - credentials-sync:/edx/app/credentials/credentials:nocopy
discovery: discovery:
volumes: volumes:
- discovery-sync:/edx/app/discovery/discovery:rw - discovery-sync:/edx/app/discovery/discovery:nocopy
ecommerce: ecommerce:
volumes: volumes:
- ecommerce-sync:/edx/app/ecommerce/ecommerce:rw - ecommerce-sync:/edx/app/ecommerce/ecommerce:nocopy
lms: lms:
volumes: volumes:
- edxapp-sync:/edx/app/edxapp/edx-platform:rw - edxapp-sync:/edx/app/edxapp/edx-platform:nocopy
studio: studio:
volumes: volumes:
- edxapp-sync:/edx/app/edxapp/edx-platform:rw - edxapp-sync:/edx/app/edxapp/edx-platform:nocopy
volumes: volumes:
credentials-sync: credentials-sync:
......
...@@ -11,47 +11,21 @@ options: ...@@ -11,47 +11,21 @@ options:
syncs: syncs:
credentials-sync: credentials-sync:
src: '../credentials/' src: '../credentials/'
dest: '/edx/app/credentials/credentials'
sync_args: '-v --copy-links --hard-links'
sync_excludes: [ '.git', '.idea', 'node_modules', 'credentials/assets', 'credentials/static/bundles' ] sync_excludes: [ '.git', '.idea', 'node_modules', 'credentials/assets', 'credentials/static/bundles' ]
sync_host_ip: 'localhost'
sync_host_port: 10872
sync_strategy: 'rsync'
discovery-sync: discovery-sync:
src: '../course-discovery/' src: '../course-discovery/'
dest: '/edx/app/discovery/discovery'
sync_args: '-v --copy-links --hard-links'
sync_excludes: [ '.git', '.idea', 'node_modules', 'course_discovery/assets', 'course_discovery/static/bower_components', 'course_discovery/static/build' ] sync_excludes: [ '.git', '.idea', 'node_modules', 'course_discovery/assets', 'course_discovery/static/bower_components', 'course_discovery/static/build' ]
sync_host_ip: 'localhost'
sync_host_port: 10873
sync_strategy: 'rsync'
ecommerce-sync: ecommerce-sync:
src: '../ecommerce/' src: '../ecommerce/'
dest: '/edx/app/ecommerce/ecommerce'
sync_args: '-v --copy-links --hard-links'
sync_excludes: [ '.git', '.idea', 'node_modules', 'assets', 'ecommerce/static/bower_components', 'ecommerce/static/build' ] sync_excludes: [ '.git', '.idea', 'node_modules', 'assets', 'ecommerce/static/bower_components', 'ecommerce/static/build' ]
sync_host_ip: 'localhost'
sync_host_port: 10874
sync_strategy: 'rsync'
edxapp-sync: edxapp-sync:
src: '../edx-platform/' src: '../edx-platform/'
dest: '/edx/app/edxapp/edx-platform'
sync_args: '-v --copy-links --hard-links'
sync_excludes: [ '.git', '.idea', 'node_modules', '.prereqs_cache' ] sync_excludes: [ '.git', '.idea', 'node_modules', '.prereqs_cache' ]
sync_host_ip: 'localhost'
sync_host_port: 10875
sync_strategy: 'rsync'
marketing-sync: marketing-sync:
src: '../edx-mktg/docroot/' src: '../edx-mktg/docroot/'
dest: '/var/www/html'
sync_args: '-v --copy-links --hard-links'
sync_excludes: [ '.git', '.idea', 'node_modules', ] sync_excludes: [ '.git', '.idea', 'node_modules', ]
sync_host_ip: 'localhost'
sync_host_port: 10876
sync_strategy: 'rsync'
sync_user: 'www-data'
sync_userid: 33 sync_userid: 33
...@@ -7,36 +7,16 @@ options: ...@@ -7,36 +7,16 @@ options:
syncs: syncs:
credentials-sync: credentials-sync:
src: '../credentials/' src: '../credentials/'
dest: '/edx/app/credentials/credentials'
sync_args: '-v --copy-links --hard-links'
sync_excludes: [ '.git', '.idea', 'node_modules', 'credentials/assets', 'credentials/static/bundles' ] sync_excludes: [ '.git', '.idea', 'node_modules', 'credentials/assets', 'credentials/static/bundles' ]
sync_host_ip: 'localhost'
sync_host_port: 10872
sync_strategy: 'rsync'
discovery-sync: discovery-sync:
src: '../course-discovery/' src: '../course-discovery/'
dest: '/edx/app/discovery/discovery'
sync_args: '-v --copy-links --hard-links'
sync_excludes: [ '.git', '.idea', 'node_modules', 'course_discovery/assets', 'course_discovery/static/bower_components', 'course_discovery/static/build' ] sync_excludes: [ '.git', '.idea', 'node_modules', 'course_discovery/assets', 'course_discovery/static/bower_components', 'course_discovery/static/build' ]
sync_host_ip: 'localhost'
sync_host_port: 10873
sync_strategy: 'rsync'
ecommerce-sync: ecommerce-sync:
src: '../ecommerce/' src: '../ecommerce/'
dest: '/edx/app/ecommerce/ecommerce'
sync_args: '-v --copy-links --hard-links'
sync_excludes: [ '.git', '.idea', 'node_modules', 'assets', 'ecommerce/static/bower_components', 'ecommerce/static/build' ] sync_excludes: [ '.git', '.idea', 'node_modules', 'assets', 'ecommerce/static/bower_components', 'ecommerce/static/build' ]
sync_host_ip: 'localhost'
sync_host_port: 10874
sync_strategy: 'rsync'
edxapp-sync: edxapp-sync:
src: '../edx-platform/' src: '../edx-platform/'
dest: '/edx/app/edxapp/edx-platform'
sync_args: '-v --copy-links --hard-links'
sync_excludes: [ '.git', '.idea', 'node_modules', '.prereqs_cache' ] sync_excludes: [ '.git', '.idea', 'node_modules', '.prereqs_cache' ]
sync_host_ip: 'localhost'
sync_host_port: 10875
sync_strategy: 'rsync'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment