-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Hi, the gulp function doesn't work on a fresh Ubuntu 16.10 installation with drupal-docker setup.
More precisely gulp watch returns the following error:
docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container processe caused "exec: \"gulp\":executable file not found in $PATH"\n".
This means that gulp can not be found from node:6-slim.
Steps to reproduce:
- download a starter theme like Zen.
- Create a subtheme (example:
drush zen newtheme). - Install node.js modules
npm install && npm install gulp-cli. This command returns an access denied error because thefunctionsscript uses WWW_USER variable which is set to 82 (www-data), but it's not correct to install the node.js modules. So I've removed the "--user" parameter in order to complete this task. (N.B: should a separate issue be opened against this problem?) - execute
gulp watchand get the reported error.
In order to get gulp working I've had to modify the gulp() function to this:
function gulp()
{
docker run \
--interactive \
$(tty_option) \
--rm \
--volume="$(pwd)":/usr/src/app \
--workdir=/usr/src/app \
${NODE_IMAGE} \
\
./node_modules/gulp/bin/gulp.js "${@}"
}
Thanks for the attention.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels