Skip to content
Snippets Groups Projects
Commit c4b503c3 authored by jurgenhaas's avatar jurgenhaas
Browse files

#9 Use the same script logic for npm as for node

parent d43faf3b
No related branches found
No related tags found
No related merge requests found
Pipeline #6183 passed
#!/bin/bash
docker run --rm -t -v $(php /usr/local/bin/volume.php) -w $PWD node:8-jessie-slim npm $@
NAME=${COMPOSE_PROJECT_NAME}_l3d_node
ID=$(docker container ls --all -q -f name=${NAME})
if [[ -n ${ID} ]]; then
docker start ${NAME} >/dev/null
docker exec -it -w ${PWD} ${NAME} npm $@
else
docker run --init -it --name=${NAME} -v $(php /usr/local/bin/volume.php) -w ${PWD} node:8-jessie-slim npm $@
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment