|
7 | 7 | # chmod 755 sync.sh |
8 | 8 |
|
9 | 9 | # Usage: |
10 | | -# Install docker-sync: ./sync.sh install |
11 | | -# Start sync and services with nginx and mysql: ./sync.sh up nginx mysql |
12 | | -# Open bash inside the workspace: ./sync.sh bash |
13 | | -# Stop containers and sync: ./sync.sh down |
14 | | -# Force sync: ./sync.sh trigger |
15 | | -# Clean synced files: ./sync.sh clean |
| 10 | +# Install docker-sync: ./laradock.sh sync install |
| 11 | +# Start sync and services with nginx and mysql: ./laradock.sh sync up nginx mysql |
| 12 | +# Stop containers and sync: ./laradock.sh sync down |
| 13 | +# Open bash inside the workspace: ./laradock.sh bash |
| 14 | +# Force sync: ./laradock.sh sync trigger |
| 15 | +# Clean synced files: ./laradock.sh sync clean |
16 | 16 |
|
17 | 17 | # prints colored text |
18 | 18 | print_style () { |
|
53 | 53 |
|
54 | 54 | if [ "$1" == "sync" ] ; then |
55 | 55 | shift; # removing first argument |
56 | | - print_style "Using Docker Sync\n" "info"; |
| 56 | + print_style "Using docker-sync to speed up Docker on OSX and Windows.\n" "success"; |
57 | 57 |
|
58 | 58 | if [ "$1" == "up" ] ; then |
59 | 59 | print_style "Initializing Docker Sync\n" "info"; |
@@ -88,7 +88,7 @@ if [ "$1" == "sync" ] ; then |
88 | 88 | exit 1 |
89 | 89 | fi |
90 | 90 | else |
91 | | - print_style "Not using synced files might be slow on OSX and Windows. Use 'sync' option to speed up.\n"; |
| 91 | + print_style "Not using docker-sync might might be slow on OSX and Windows. Use 'sync' option to speed up.\n"; |
92 | 92 |
|
93 | 93 | if [ "$1" == "up" ] ; then |
94 | 94 | print_style "Initializing Docker Compose\n" "info"; |
|
99 | 99 | print_style "Stopping Docker Compose\n" "info"; |
100 | 100 | docker-compose down; |
101 | 101 |
|
| 102 | + elif [ "$1" == "build" ]; then |
| 103 | + print_style "Building workspace\n" "info"; |
| 104 | + docker-compose build workspace; |
| 105 | + |
102 | 106 | elif [ "$1" == "bash" ]; then |
103 | 107 | docker-compose exec workspace bash; |
104 | 108 |
|
|
0 commit comments