Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GitLab Drupal CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker
GitLab Drupal CI
Commits
c4b503c3
Commit
c4b503c3
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#9
Use the same script logic for npm as for node
parent
d43faf3b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#6183
passed
6 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/npm
+8
-1
8 additions, 1 deletion
bin/npm
with
8 additions
and
1 deletion
bin/npm
+
8
−
1
View file @
c4b503c3
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment