forked from NeowayLabs/neosearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (34 loc) · 1.17 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# This file describes the standard way to build neosearch, using docker
FROM ubuntu:14.04
MAINTAINER Tiago Katcipis <tiagokatcipis@gmail.com> (@tiagokatcipis)
# Packaged dependencies
RUN apt-get update && apt-get install -y \
ca-certificates \
libleveldb-dev \
build-essential \
curl \
git \
bzr \
mercurial \
--no-install-recommends
# Install Go
ENV GO_VERSION 1.4.2
RUN curl -sSL https://golang.org/dl/go${GO_VERSION}.src.tar.gz | tar -v -C /usr/local -xz \
&& mkdir -p /go/bin
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
# Grab Go test coverage tools
RUN go get golang.org/x/tools/cmd/cover && \
go get github.com/tools/godep && \
go get github.com/axw/gocov/gocov && \
go get golang.org/x/tools/cmd/cover && \
go get github.com/golang/lint/golint && \
go get golang.org/x/tools/cmd/goimports && \
go get golang.org/x/tools/cmd/godoc && \
go get golang.org/x/tools/cmd/vet && \
go get github.com/jmhodges/levigo && \
go get github.com/extemporalgenome/slug && \
go get launchpad.net/gommap
ENV STORAGE_ENGINE leveldb
WORKDIR /go/src/github.com/NeowayLabs/neosearch