Skip to content

Commit

Permalink
Merge pull request #245 from jhermann/update-build-sh
Browse files Browse the repository at this point in the history
Docker build: copy .npmrc, use sed 'g' flags
  • Loading branch information
nailor authored Sep 25, 2018
2 parents 88dae1a + 5f6fcfb commit 79568e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/examples/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ staging_dir="build/staging"
rm -rf $staging_dir 2>/dev/null || true
mkdir -p $staging_dir
git ls-files >build/git-files
test ! -f .npmrc || echo .npmrc >>build/git-files
tar -c --files-from build/git-files | tar -C $staging_dir -x
sed -i -r -e 1s/stretch/$codename/g $staging_dir/debian/changelog
sed -r -e s/#UUID#/$(< /proc/sys/kernel/random/uuid)/g \
-e s/#DIST_ID#/$dist_id/g -e s/#CODENAME#/$codename/g \
-e s/#NODEREPO#/$NODEREPO/ -e s/#PYPI#/$pypi_name/ -e s/#PKGNAME#/$pkgname/ \
-e s/#NODEREPO#/$NODEREPO/g -e s/#PYPI#/$pypi_name/g -e s/#PKGNAME#/$pkgname/g \
<Dockerfile.build >$staging_dir/Dockerfile

# Build in Docker container, save results, and show package info
Expand Down

0 comments on commit 79568e2

Please sign in to comment.