File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11pluginhook
2+ pluginhook.linux
23package
Original file line number Diff line number Diff line change 1+ FROM ubuntu:13.10
2+
3+ MAINTAINER Kamil Trzciński <ayufan@ayufan.eu>
4+
5+ RUN apt-get update
6+ RUN apt-get install -y curl gcc make g++ build-essential ca-certificates mercurial
7+
8+ RUN curl https://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz | tar -C / -xz
9+
10+ ENV PATH $PATH:/go/bin:/gocode/bin
11+ ENV GOPATH /gocode
12+ ENV GOROOT /go
13+
14+ ADD . /gocode
15+ WORKDIR /gocode
16+
17+ RUN go get code.google.com/p/go.crypto/ssh/terminal
18+ RUN go build -o pluginhook
19+ RUN GOOS=linux go build -o pluginhook.linux
Original file line number Diff line number Diff line change @@ -2,9 +2,17 @@ VERSION = 0.1.1
22
33build : pluginhook
44
5- pluginhook :
6- go build -o pluginhook
7- GOOS=linux go build -o pluginhook.linux
5+ install : pluginhook
6+ cp pluginhook /usr/local/bin/
7+
8+ pluginhook pluginhook.linux : pluginhook.go
9+ docker build -t progrium/pluginhook .
10+ docker run -t -rm progrium/pluginhook cat pluginhook > pluginhook.tmp
11+ docker run -t -rm progrium/pluginhook cat pluginhook.linux > pluginhook.linux.tmp
12+ mv pluginhook.tmp pluginhook
13+ mv pluginhook.linux.tmp pluginhook.linux
14+ docker rmi progrium/pluginhook
15+ chmod +x pluginhook pluginhook.linux
816
917test : build
1018 PLUGIN_PATH=./tests/plugins BIN=./pluginhook tests/run_tests.sh
@@ -16,4 +24,4 @@ package: test build
1624 cd package && fpm -s dir -t deb -n pluginhook -v ${VERSION} --prefix /usr/local bin
1725
1826release : package
19- s3cmd -P put package/pluginhook_${VERSION} _amd64.deb s3://progrium-pluginhook
27+ s3cmd -P put package/pluginhook_${VERSION} _amd64.deb s3://progrium-pluginhook
You can’t perform that action at this time.
0 commit comments