Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
1d2f3855
Commit
1d2f3855
authored
Jul 15, 2017
by
Arian Acosta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding options
parent
7b180524
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
laradock.sh
laradock.sh
+12
-8
No files found.
laradock.sh
View file @
1d2f3855
...
...
@@ -7,12 +7,12 @@
# chmod 755 sync.sh
# Usage:
# Install docker-sync: ./
sync.sh
install
# Start sync and services with nginx and mysql: ./
sync.sh
up nginx mysql
#
Open bash inside the workspace: ./sync.sh bash
#
Stop containers and sync: ./sync.sh down
# Force sync: ./
sync.sh
trigger
# Clean synced files: ./
sync.sh
clean
# Install docker-sync: ./
laradock.sh sync
install
# Start sync and services with nginx and mysql: ./
laradock.sh sync
up nginx mysql
#
Stop containers and sync: ./laradock.sh sync down
#
Open bash inside the workspace: ./laradock.sh bash
# Force sync: ./
laradock.sh sync
trigger
# Clean synced files: ./
laradock.sh sync
clean
# prints colored text
print_style
()
{
...
...
@@ -53,7 +53,7 @@ fi
if
[
"
$1
"
==
"sync"
]
;
then
shift
;
# removing first argument
print_style
"Using
Docker Sync
\n
"
"info
"
;
print_style
"Using
docker-sync to speed up Docker on OSX and Windows.
\n
"
"success
"
;
if
[
"
$1
"
==
"up"
]
;
then
print_style
"Initializing Docker Sync
\n
"
"info"
;
...
...
@@ -88,7 +88,7 @@ if [ "$1" == "sync" ] ; then
exit
1
fi
else
print_style
"Not using
synced files
might be slow on OSX and Windows. Use 'sync' option to speed up.
\n
"
;
print_style
"Not using
docker-sync might
might be slow on OSX and Windows. Use 'sync' option to speed up.
\n
"
;
if
[
"
$1
"
==
"up"
]
;
then
print_style
"Initializing Docker Compose
\n
"
"info"
;
...
...
@@ -99,6 +99,10 @@ else
print_style
"Stopping Docker Compose
\n
"
"info"
;
docker-compose down
;
elif
[
"
$1
"
==
"build"
]
;
then
print_style
"Building workspace
\n
"
"info"
;
docker-compose build workspace
;
elif
[
"
$1
"
==
"bash"
]
;
then
docker-compose
exec
workspace bash
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment