Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
SemWeb
libview
Commits
27af76b95f16
Commit
dc69a07a
authored
Nov 09, 2018
by
Laurent Wouters
Browse files
[releng] Fix use of npm from build environment
parent
e2e36d668e97
Changes
1
Hide whitespace changes
Inline
Side-by-side
npm.sh
→
cmd
View file @
27af76b9
...
...
@@ -10,4 +10,16 @@ if [ "$BUILDER" -lt "1" ]; then
"
$ROOT
/.releng/build-env.sh"
fi
docker run
-it
--rm
--user
=
$(
id
-u
)
--group-add
=
$(
id
-g
)
-v
"
$ROOT
:/src"
-e
"HOME=/npm"
"logilab/ld-build-env:latest"
npm
$@
CD
=
$(
pwd
)
WD
=
"/src/"
case
"
$CD
"
in
"
$ROOT
"
*
)
if
[
"
$CD
"
!=
"
$ROOT
"
]
;
then
S
=
$((${#
ROOT
}
+
1
))
SUB
=
$(
echo
"
$CD
"
|
cut
-c
"
$S
-
${#
CD
}
"
)
WD
=
"/src
$SUB
"
fi
;;
esac
docker run
-it
--rm
--user
=
$(
id
-u
)
-v
"
$ROOT
:/src"
-e
"HOME=/npm"
-w
"
$WD
"
-p
8080:8080
"logilab/ld-build-env:latest"
npm
$@
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