Skip to content

Commit

Permalink
Docker-Sync strategy is now generated from OS version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph3nol committed Sep 28, 2017
1 parent 934b18b commit 72a1caa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .docker-arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:
packages:
- make
- libxslt-dev
commands:
- echo "alias docker-arch=\"/apps/php/bin/docker-arch generate\"" >> ~/.zshrc
options:
version: "7.1"
cli_only: true
Expand Down
5 changes: 5 additions & 0 deletions src/Application/Resources/views/Base/do.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ usage () {

{% if dockerSyncRequired %}
create_volumes () {
if [[ "$OSTYPE" == "linux-gnu" ]]; then
sed -i "" -e "s/sync_strategy: \"unison\"/sync_strategy: \"native\"/g" ./docker-sync.yml
elif [[ "$OSTYPE" == "darwin"* ]]; then
sed -i "" -e "s/sync_strategy: \"unison\"/sync_strategy: \"native_osx\"/g" ./docker-sync.yml
fi
{% for service in project.services if service.isDockerSynched == true %}
$DOCKER_COMMAND volume create --name={{ project.identifier }}-{{ service.identifier }}-sync
{% endfor %}
Expand Down

0 comments on commit 72a1caa

Please sign in to comment.