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
62e0f044
Commit
62e0f044
authored
Oct 13, 2016
by
Bo-Yi Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support Yarn MANAGEMENT tool.
Signed-off-by:
Bo-Yi Wu
<
appleboy.tw@gmail.com
>
parent
a2847316
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
docker-compose.yml
docker-compose.yml
+1
-0
Dockerfile
workspace/Dockerfile
+24
-0
No files found.
docker-compose.yml
View file @
62e0f044
...
...
@@ -11,6 +11,7 @@ services:
-
INSTALL_XDEBUG=false
-
INSTALL_MONGO=false
-
INSTALL_NODE=false
-
INSTALL_YARN=false
-
INSTALL_DRUSH=false
-
INSTALL_AEROSPIKE_EXTENSION=false
-
COMPOSER_GLOBAL_INSTALL=false
...
...
workspace/Dockerfile
View file @
62e0f044
...
...
@@ -181,6 +181,30 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
echo
'[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm'
>>
~/.bashrc
\
;
fi
#####################################
# YARN:
#####################################
USER
laradock
ARG
INSTALL_YARN=false
ENV
INSTALL_YARN ${INSTALL_YARN}
RUN if
[
${
INSTALL_YARN
}
=
true
]
;
then
\
curl
-o-
-L
https://yarnpkg.com/install.sh | bash
&&
\
echo
""
>>
~/.bashrc
&&
\
echo
'export PATH="$HOME/.yarn/bin:$PATH"'
>>
~/.bashrc
\
;
fi
# Add YARN binaries to root's .bashrc
USER
root
RUN if
[
${
INSTALL_YARN
}
=
true
]
;
then
\
echo
""
>>
~/.bashrc
&&
\
echo
'export YARN_DIR="/home/laradock/.yarn"'
>>
~/.bashrc
&&
\
echo
'export PATH="$YARN_DIR/bin:$PATH"'
>>
~/.bashrc
\
;
fi
#####################################
# PHP Aerospike:
#####################################
...
...
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