Skip to content
Myr

Build linux binary on Centos

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent d980e00 · Browse files · 3 files+18 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+18 added−6 removed

  • other:+18 added−6 removed

3 files+18 added−6 removed

modified:src/curses/curses.go+1 added-1 removed
3 unmodified lines
4#include <ncurses.h>5#include <locale.h>6#cgo darwin LDFLAGS: -lncurses7#cgo linux,386 LDFLAGS: -lncurses8#cgo linux,amd64 LDFLAGS: -l:libncurses.a -l:libtinfo.a -l:libgpm.a8#cgo linux,amd64 LDFLAGS: -l:libncurses.a -l:libtinfo.a -l:libgpm.a -ldl9*/10import "C"1112import (
546 unmodified lines
modified:src/Dockerfile.centos+7 added-2 removed
1FROM centos:centos71FROM centos:centos62MAINTAINER Junegunn Choi <junegunn.c@gmail.com>34# yum5RUN yum install -y git gcc make tar ncurses-devel5RUN 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.i68689# Install Go 1.410RUN cd / && curl \11 https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | \
2 unmodified lines
14ENV GOPATH /go15ENV GOROOT /go1.416ENV PATH /go1.4/bin:$PATH1718# For i386 build19RUN cd $GOROOT/src && GOARCH=386 ./make.bash2021# Volume22VOLUME /go2324# Default CMD
2 unmodified lines
modified:src/Makefile+10 added-3 removed
60 unmodified lines
6162docker-ubuntu:63 docker build -t junegunn/ubuntu-sandbox - < Dockerfile.ubuntu6465docker-centos:66 docker build -t junegunn/centos-sandbox - < Dockerfile.centos6768arch: docker-arch69 docker run -i -t -v $(GOPATH):/go junegunn/$@-sandbox \70 sh -c 'cd /go/src/github.com/junegunn/fzf/src; /bin/bash'7172ubuntu: docker-ubuntu73 docker run -i -t -v $(GOPATH):/go junegunn/$@-sandbox \74 sh -c 'cd /go/src/github.com/junegunn/fzf/src; /bin/bash'7573linux: docker-ubuntu74 docker run -i -t -v $(GOPATH):/go junegunn/ubuntu-sandbox \76centos: docker-centos77 docker run -i -t -v $(GOPATH):/go junegunn/$@-sandbox \78 sh -c 'cd /go/src/github.com/junegunn/fzf/src; /bin/bash'7980linux: docker-centos81 docker run -i -t -v $(GOPATH):/go junegunn/centos-sandbox \82 /bin/bash -ci 'cd /go/src/github.com/junegunn/fzf/src; make'8384.PHONY: all build release test install uninstall clean docker \78 linux arch ubuntu docker-arch docker-ubuntu85 linux arch ubuntu centos docker-arch docker-ubuntu docker-centos