mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-11 23:50:04 +01:00
Remove osx cross compilation in favor of homebrew
This commit is contained in:
parent
ff85c92b98
commit
b74629e5be
3 changed files with 9 additions and 41 deletions
17
Dockerfile
17
Dockerfile
|
|
@ -8,23 +8,6 @@ RUN dpkg --add-architecture i386 && \
|
|||
apt-get install -y libc6-dev-i386 && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# osx cross compilation
|
||||
# ref: https://github.com/karalabe/xgo/blob/master/docker/base/Dockerfile
|
||||
ENV OSX_SDK_FILE MacOSX10.9.sdk.tar.xz
|
||||
ENV OSX_SDK_SHA256 ac7ccfd8dee95d9811ce50cdc154c8ec7181c51652b5a434445475af62c4fedb
|
||||
RUN cd /opt && \
|
||||
git clone https://github.com/tpoechtrager/osxcross.git && \
|
||||
cd osxcross && \
|
||||
sed -i -e 's|-march=native||g' ./build_clang.sh ./wrapper/build.sh && \
|
||||
apt-get update && \
|
||||
./tools/get_dependencies.sh && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
curl -fSL -o ./tarballs/$OSX_SDK_FILE \
|
||||
https://s3.amazonaws.com/andrew-osx-sdks/$OSX_SDK_FILE && \
|
||||
echo "$OSX_SDK_SHA256 ./tarballs/$OSX_SDK_FILE" | sha256sum -c - && \
|
||||
UNATTENDED=1 OSX_VERSION_MIN=10.6 ./build.sh
|
||||
ENV PATH /opt/osxcross/target/bin:$PATH
|
||||
|
||||
# development dependencies
|
||||
RUN go get \
|
||||
github.com/golang/lint/golint \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue