mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2026-02-02 09:25:07 +01:00
Remove cross compilation Docker image
This commit is contained in:
parent
8fea318a0e
commit
b44008a503
1 changed files with 0 additions and 32 deletions
|
|
@ -1,32 +0,0 @@
|
|||
# this container is used for compiling dbmate against multiple targets
|
||||
FROM golang:1.6.0
|
||||
|
||||
ENV CGO_ENABLED 1
|
||||
|
||||
# i386 cross compilation
|
||||
RUN dpkg --add-architecture i386 && \
|
||||
apt-get update && \
|
||||
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_VERSION 10.9
|
||||
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/MacOSX${OSX_SDK_VERSION}.sdk.tar.xz \
|
||||
https://s3.amazonaws.com/andrew-osx-sdks/MacOSX${OSX_SDK_VERSION}.sdk.tar.xz && \
|
||||
UNATTENDED=1 OSX_VERSION_MIN=10.6 ./build.sh
|
||||
ENV PATH /opt/osxcross/target/bin:$PATH
|
||||
|
||||
# copy source files
|
||||
COPY . $GOPATH/src/github.com/amacneil/dbmate
|
||||
WORKDIR $GOPATH/src/github.com/amacneil/dbmate
|
||||
|
||||
# fetch dependencies
|
||||
RUN go get -d -t -v
|
||||
Loading…
Add table
Add a link
Reference in a new issue