Remove Dockerfiles and clean up Makefile
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Due to the recent removal of ncurses dependency, we can cross-compile binaries for different platforms without virtual machines.
authored by Junegunn Choi · committed by Junegunn Choi · parent 876c233 · Browse files · 5 files·+3 added−164 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+3 added−164 removed
- other:+3 added−164 removed
Provenance
- Commit
5bb18b6- Tree
707285f- Author
Junegunn Choi <junegunn.c@gmail.com>- Committer
Junegunn Choi <junegunn.c@gmail.com>- Parent
876c233
5 files changed+3 added−164 removed
deleted:src/Dockerfile.android-40 removed
1-FROM ubuntu:14.042-MAINTAINER Junegunn Choi <junegunn.c@gmail.com>3-4-# apt-get5-RUN apt-get update && apt-get -y upgrade && \6- apt-get install -y --force-yes git curl build-essential7-8-# Install Go 1.49-RUN cd / && curl \10- https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | \11- tar -xz && mv go go1.4 && \12- sed -i 's@#define PTHREAD_KEYS_MAX 128@@' /go1.4/src/runtime/cgo/gcc_android_arm.c13-14-ENV GOROOT /go1.415-ENV PATH /go1.4/bin:$PATH16-17-RUN cd / && \18- curl -O http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin && \19- chmod 755 /android-ndk* && /android-ndk-r10e-linux-x86_64.bin && \20- mv android-ndk-r10e /android-ndk21-22-RUN cd /android-ndk && bash ./build/tools/make-standalone-toolchain.sh --platform=android-21 --install-dir=/ndk --arch=arm23-24-ENV NDK_CC /ndk/bin/arm-linux-androideabi-gcc25-26-RUN cd $GOROOT/src && \27- CC_FOR_TARGET=$NDK_CC GOOS=android GOARCH=arm GOARM=7 ./make.bash28-29-RUN cd / && curl \30- http://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz | \31- tar -xz && cd /ncurses-5.9 && \32- ./configure CC=$NDK_CC CFLAGS="-fPIE -march=armv7-a -mfpu=neon -mhard-float -Wl,--no-warn-mismatch" LDFLAGS="-march=armv7-a -Wl,--no-warn-mismatch" --host=arm-linux --enable-overwrite --enable-const --without-cxx-binding --without-shared --without-debug --enable-widec --enable-ext-colors --enable-ext-mouse --enable-pc-files --with-pkg-config-libdir=$PKG_CONFIG_LIBDIR --without-manpages --without-ada --disable-shared --without-tests --prefix=/ndk/sysroot/usr --with-default-terminfo-dirs=/usr/share/terminfo --with-terminfo-dirs=/usr/share/terminfo ac_cv_header_locale_h=n ac_cv_func_getpwent=no ac_cv_func_getpwnam=no ac_cv_func_getpwuid=no && \33- sed -i 's@#define HAVE_LOCALE_H 1@/* #undef HAVE_LOCALE_H */@' include/ncurses_cfg.h && \34- make && \35- sed -i '0,/echo.*/{s/echo.*/exit 0/}' misc/run_tic.sh && \36- make install && \37- mv /ndk/sysroot/usr/lib/libncursesw.a /ndk/sysroot/usr/lib/libncurses.a38-39-# Default CMD40-CMD cd /fzf/src && /bin/bashdeleted:src/Dockerfile.arch-24 removed
1-FROM base/archlinux:2014.07.032-MAINTAINER Junegunn Choi <junegunn.c@gmail.com>3-4-# apt-get5-RUN pacman-key --populate archlinux && pacman-key --refresh-keys6-RUN pacman-db-upgrade && pacman -Syu --noconfirm base-devel git7-8-# Install Go 1.49-RUN cd / && curl \10- https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | \11- tar -xz && mv go go1.412-13-ENV GOROOT /go1.414-ENV PATH /go1.4/bin:$PATH15-16-# For i386 build17-RUN echo '[multilib]' >> /etc/pacman.conf && \18- echo 'Include = /etc/pacman.d/mirrorlist' >> /etc/pacman.conf && \19- pacman-db-upgrade && yes | pacman -Sy gcc-multilib lib32-ncurses && \20- cd $GOROOT/src && GOARCH=386 ./make.bash21-22-# Default CMD23-CMD cd /fzf/src && /bin/bash24-deleted:src/Dockerfile.centos-32 removed
1-FROM centos:centos62-MAINTAINER Junegunn Choi <junegunn.c@gmail.com>3-4-# yum5-RUN yum install -y git gcc make tar glibc-devel glibc-devel.i686 \6- ncurses-devel ncurses-static ncurses-devel.i686 \7- gpm-devel gpm-static libgcc.i6868-9-# Install Go 1.410-RUN cd / && curl \11- https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | \12- tar -xz && mv go go1.413-14-# Install Go 1.715-RUN cd / && curl \16- https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz | \17- tar -xz && mv go go1.718-19-# Install RPMs for building static 32-bit binary20-RUN curl ftp://ftp.pbone.net/mirror/ftp.centos.org/6.8/os/i386/Packages/ncurses-static-5.7-4.20090207.el6.i686.rpm -o rpm && rpm -i rpm && \21- curl ftp://ftp.pbone.net/mirror/ftp.centos.org/6.8/os/i386/Packages/gpm-static-1.20.6-12.el6.i686.rpm -o rpm && rpm -i rpm22-23-ENV GOROOT_BOOTSTRAP /go1.424-ENV GOROOT /go1.725-ENV PATH /go1.7/bin:$PATH26-27-# For i386 build28-RUN cd $GOROOT/src && GOARCH=386 ./make.bash29-30-# Default CMD31-CMD cd /fzf/src && /bin/bash32-deleted:src/Dockerfile.ubuntu-22 removed
1-FROM ubuntu:14.042-MAINTAINER Junegunn Choi <junegunn.c@gmail.com>3-4-# apt-get5-RUN apt-get update && apt-get -y upgrade && \6- apt-get install -y --force-yes git curl build-essential libncurses-dev libgpm-dev7-8-# Install Go 1.49-RUN cd / && curl \10- https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | \11- tar -xz && mv go go1.412-13-ENV GOROOT /go1.414-ENV PATH /go1.4/bin:$PATH15-16-# For i386 build17-RUN apt-get install -y lib32ncurses5-dev && \18- cd $GOROOT/src && GOARCH=386 ./make.bash19-20-# Default CMD21-CMD cd /fzf/src && /bin/bash22-modified:src/Makefile+3 added-46 removed
2 unmodified lines3 ifeq ($(UNAME_S),Darwin)4 GOOS := darwin5 else ifeq ($(UNAME_S),Linux)6 GOOS := linux7+else8+$(error "$$GOOS is not defined.")9 endif10 endif11 12 SOURCES := $(wildcard *.go */*.go)13 ROOTDIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))14 BINDIR := $(shell dirname $(ROOTDIR))/bin15 GOPATH := $(shell dirname $(ROOTDIR))/gopath16 SRCDIR := $(GOPATH)/src/github.com/junegunn/fzf/src15-DOCKEROPTS := -i -t -v $(ROOTDIR):/fzf/src17 BINARY32 := fzf-$(GOOS)_38618 BINARY64 := fzf-$(GOOS)_amd6419 BINARYARM5 := fzf-$(GOOS)_arm520 BINARYARM6 := fzf-$(GOOS)_arm665 unmodified lines86 deps: $(SRCDIR) $(SOURCES)87 cd $(SRCDIR) && go get -tags "$(TAGS)"88 ./deps89 89-android-build: $(SRCDIR)90- cd $(SRCDIR) && GOARCH=arm GOARM=7 CGO_ENABLED=1 go get91- cd $(SRCDIR)/fzf && GOARCH=arm GOARM=7 CGO_ENABLED=1 go build -a -ldflags="-w -extldflags=-pie" -o $(BINARYARM7)92- cd $(SRCDIR)/fzf && cp $(BINARYARM7) $(RELEASEARM7) && tar -czf $(RELEASEARM7).tgz $(RELEASEARM7) && \93- rm -f $(RELEASEARM7)94-90 test: deps91 SHELL=/bin/sh GOOS= go test -v -tags "$(TAGS)" ./...92 93 install: $(BINDIR)/fzf29 unmodified lines123 124 $(BINDIR):125 mkdir -p $@126 132-docker-arch:133- docker build -t junegunn/arch-sandbox - < Dockerfile.arch134-135-docker-ubuntu:136- docker build -t junegunn/ubuntu-sandbox - < Dockerfile.ubuntu137-138-docker-centos:139- docker build -t junegunn/centos-sandbox - < Dockerfile.centos140-141-docker-android:142- docker build -t junegunn/android-sandbox - < Dockerfile.android143-144-arch: docker-arch145- docker run $(DOCKEROPTS) junegunn/$@-sandbox \146- sh -c 'cd /fzf/src; /bin/bash'147-148-ubuntu: docker-ubuntu149- docker run $(DOCKEROPTS) junegunn/$@-sandbox \150- sh -c 'cd /fzf/src; /bin/bash'151-152-centos: docker-centos153- docker run $(DOCKEROPTS) junegunn/$@-sandbox \154- sh -c 'cd /fzf/src; /bin/bash'155-156-linux: docker-centos157- docker run $(DOCKEROPTS) junegunn/centos-sandbox \158- /bin/bash -ci 'cd /fzf/src; make TAGS=static release'159-160-ubuntu-android: docker-android161- docker run $(DOCKEROPTS) junegunn/android-sandbox \162- sh -c 'cd /fzf/src; /bin/bash'163-164-android: docker-android165- docker run $(DOCKEROPTS) junegunn/android-sandbox \166- /bin/bash -ci 'cd /fzf/src; GOOS=android make android-build'167-168-.PHONY: all deps release test install uninstall clean \169- linux arch ubuntu centos docker-arch docker-ubuntu docker-centos \170- android-build docker-android ubuntu-android android127+.PHONY: all deps release release-all test install uninstall clean