Skip to content

Instantly share code, notes, and snippets.

@thinktainer
Last active November 25, 2016 22:35
Show Gist options
  • Save thinktainer/128bebe4743da01d81f1e449a226e383 to your computer and use it in GitHub Desktop.
Save thinktainer/128bebe4743da01d81f1e449a226e383 to your computer and use it in GitHub Desktop.
diff --git a/init-tools.sh b/init-tools.sh
index e842c9d..5a813e4 100755
--- a/init-tools.sh
+++ b/init-tools.sh
@@ -66,6 +66,9 @@ get_current_linux_name() {
echo "opensuse.42.1"
return 0
fi
+ elif [ "$(cat /etc/*-release | grep -cim1 alpine)" -eq 1 ]; then
+ echo "alpine"
+ return 0
fi
# Cannot determine Linux distribution, assuming Ubuntu 14.04.
from alpine:edge
env DOWNLOAD_DIR=/usr/local/build
run mkdir -p $DOWNLOAD_DIR
workdir $DOWNLOAD_DIR
copy ./add_alpine.patch ./
run echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
run apk update \
&& apk add bash musl-dev openssl cmake make llvm clang clang-dev gettext-dev \
python util-linux-dev icu-dev lldb-dev@testing libunwind-dev \
lttng-ust-dev@testing binutils gcc git build-base \
&& git clone https://github.com/dotnet/coreclr.git \
&& cd coreclr \
&& git checkout -b build_alpine b73eb6032205bd0603e0bdcf5b4305997ed00e08 \
&& git apply ../add_alpine.patch \
&& bash -c './build.sh x64 debug'
run git clone https://github.com/dotnet/corefx.git \
&&
CMD ["/bin/sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment