From 5d7cae249c56f8e70c5e05e9fd4d7ce906f7b02a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ey=C3=BE=C3=B3r=20Magn=C3=BAsson?= Date: Mon, 18 Mar 2019 21:44:29 +0100 Subject: [PATCH] chore: add alpine as build target We need this to be able to run Garden in an alpine Docker container. --- garden-service/bin/build-pkg.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/garden-service/bin/build-pkg.sh b/garden-service/bin/build-pkg.sh index 05f2991b55..f87d5b4f22 100755 --- a/garden-service/bin/build-pkg.sh +++ b/garden-service/bin/build-pkg.sh @@ -19,8 +19,7 @@ rsync -r --exclude=.garden --exclude=.git static tmp/dist echo "-> Building executables..." cd dist -# note: using the npm package is still preferred on macOS, because it needs the native fsevents library -pkg --target node10-macos-x64,node10-linux-x64,node10-win-x64 ../tmp/dist +pkg --target node10-macos-x64,node10-linux-x64,node10-win-x64,node10-alpine-x64 ../tmp/dist echo "-> Preparing packages..." @@ -34,6 +33,16 @@ tar -czf garden-${version}-linux-amd64.tar.gz linux-amd64 echo " -> cleaning up tmp files" rm -rf linux-amd64 +echo " -> alpine-amd64" +rm -rf alpine-amd64 +mkdir alpine-amd64 +mv garden-cli-alpine alpine-amd64/garden +cp -r ../tmp/dist/static alpine-amd64 +echo " -> tar" +tar -czf garden-${version}-alpine-amd64.tar.gz alpine-amd64 +echo " -> cleaning up tmp files" +rm -rf alpine-amd64 + echo " -> macos-amd64" rm -rf macos-amd64 mkdir macos-amd64