-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from sttts/docker-build
Add docker build container for easy cross-compilation
- Loading branch information
Showing
5 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ bamboo | |
node_modules | ||
.sass-cache | ||
builder/build | ||
builder/*.deb | ||
*.sublime-project | ||
output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM ubuntu:14.04 | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV GOPATH /opt/go | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq golang git mercurial ruby-dev gcc make | ||
RUN gem install fpm | ||
|
||
ADD . /opt/go/src/github.com/QubitProducts/bamboo | ||
|
||
WORKDIR /opt/go/src/github.com/QubitProducts/bamboo | ||
|
||
RUN go get github.com/tools/godep && \ | ||
go get -t github.com/smartystreets/goconvey | ||
|
||
RUN mkdir -p /output | ||
VOLUME /output | ||
|
||
ENV USER root | ||
CMD builder/build.sh && mv builder/bamboo*.deb /output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters