Skip to content

Commit

Permalink
Merge pull request #206 from mvallerie/master
Browse files Browse the repository at this point in the history
Now using golang:1.6.2 as a base for docker images
  • Loading branch information
j1n6 committed May 23, 2016
2 parents 01da91b + 23f2741 commit cbac0cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
FROM ubuntu:15.10
FROM golang:1.6.2

ENV DEBIAN_FRONTEND noninteractive
ENV GOPATH /opt/go

RUN apt-get update -yqq && \
apt-get install -yqq software-properties-common && \
add-apt-repository -y ppa:vbernat/haproxy-1.5 && \
apt-get update -yqq && \
apt-get install -yqq haproxy golang git mercurial supervisor && \
apt-get install -yqq haproxy git mercurial supervisor && \
rm -rf /var/lib/apt/lists/*

ADD . /opt/go/src/github.com/QubitProducts/bamboo
ADD . /go/src/github.com/QubitProducts/bamboo
ADD builder/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD builder/run.sh /run.sh

WORKDIR /opt/go/src/github.com/QubitProducts/bamboo
WORKDIR /go/src/github.com/QubitProducts/bamboo

RUN go get github.com/tools/godep && \
go get -t github.com/smartystreets/goconvey && \
go build && \
ln -s /opt/go/src/github.com/QubitProducts/bamboo /var/bamboo && \
ln -s /go/src/github.com/QubitProducts/bamboo /var/bamboo && \
mkdir -p /run/haproxy && \
mkdir -p /var/log/supervisor

Expand Down
8 changes: 3 additions & 5 deletions Dockerfile-deb
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
FROM ubuntu:14.04
FROM golang:1.6.2

ENV DEBIAN_FRONTEND noninteractive
ENV GOPATH /opt/go

RUN apt-get update -yqq
RUN apt-get install -yqq software-properties-common curl git mercurial ruby-dev gcc make
RUN add-apt-repository -y ppa:ethereum/ethereum && apt-get update && apt-get -y install golang
RUN gem install fpm

ADD . /opt/go/src/github.com/QubitProducts/bamboo
ADD . /go/src/github.com/QubitProducts/bamboo

WORKDIR /opt/go/src/github.com/QubitProducts/bamboo
WORKDIR /go/src/github.com/QubitProducts/bamboo
RUN go get github.com/tools/godep && \
go get -t github.com/smartystreets/goconvey && \
go build
Expand Down

0 comments on commit cbac0cd

Please sign in to comment.