Skip to content

Commit 1d2f385

Browse files
committed
adding options
1 parent 7b18052 commit 1d2f385

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

laradock.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
# chmod 755 sync.sh
88

99
# 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
1616

1717
# prints colored text
1818
print_style () {
@@ -53,7 +53,7 @@ fi
5353

5454
if [ "$1" == "sync" ] ; then
5555
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";
5757

5858
if [ "$1" == "up" ] ; then
5959
print_style "Initializing Docker Sync\n" "info";
@@ -88,7 +88,7 @@ if [ "$1" == "sync" ] ; then
8888
exit 1
8989
fi
9090
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";
9292

9393
if [ "$1" == "up" ] ; then
9494
print_style "Initializing Docker Compose\n" "info";
@@ -99,6 +99,10 @@ else
9999
print_style "Stopping Docker Compose\n" "info";
100100
docker-compose down;
101101

102+
elif [ "$1" == "build" ]; then
103+
print_style "Building workspace\n" "info";
104+
docker-compose build workspace;
105+
102106
elif [ "$1" == "bash" ]; then
103107
docker-compose exec workspace bash;
104108

0 commit comments

Comments
 (0)