2017-11-14 20:25:50 +00:00
|
|
|
FROM ubuntu:xenial
|
2015-12-03 16:44:17 +00:00
|
|
|
|
2015-12-24 18:50:37 +00:00
|
|
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
2015-12-03 16:44:17 +00:00
|
|
|
python-software-properties \
|
|
|
|
software-properties-common \
|
|
|
|
wget \
|
|
|
|
git \
|
|
|
|
mercurial \
|
|
|
|
make \
|
|
|
|
ruby \
|
|
|
|
ruby-dev \
|
2018-02-06 17:53:34 +00:00
|
|
|
autoconf \
|
|
|
|
libtool \
|
2017-11-14 20:25:50 +00:00
|
|
|
build-essential \
|
2015-12-03 16:44:17 +00:00
|
|
|
rpm \
|
|
|
|
zip \
|
|
|
|
python \
|
2016-07-15 21:44:10 +00:00
|
|
|
python-boto \
|
|
|
|
asciidoc \
|
|
|
|
xmlto \
|
|
|
|
docbook-xsl
|
2015-12-03 16:44:17 +00:00
|
|
|
|
|
|
|
RUN gem install fpm
|
|
|
|
|
2016-01-10 22:47:43 +00:00
|
|
|
# Install go
|
2015-12-03 16:44:17 +00:00
|
|
|
ENV GOPATH /root/go
|
2017-10-26 16:46:46 +00:00
|
|
|
ENV GO_VERSION 1.9.2
|
2015-12-03 16:44:17 +00:00
|
|
|
ENV GO_ARCH amd64
|
2018-02-12 04:37:43 +00:00
|
|
|
RUN wget --no-verbose https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz && \
|
2017-10-29 21:01:34 +00:00
|
|
|
tar -C /usr/local/ -xf /go${GO_VERSION}.linux-${GO_ARCH}.tar.gz && \
|
2015-12-03 16:44:17 +00:00
|
|
|
rm /go${GO_VERSION}.linux-${GO_ARCH}.tar.gz
|
|
|
|
ENV PATH /usr/local/go/bin:$PATH
|
|
|
|
|
2016-02-10 17:26:18 +00:00
|
|
|
ENV PROJECT_DIR $GOPATH/src/github.com/influxdata/influxdb
|
2015-12-03 16:44:17 +00:00
|
|
|
ENV PATH $GOPATH/bin:$PATH
|
|
|
|
RUN mkdir -p $PROJECT_DIR
|
|
|
|
WORKDIR $PROJECT_DIR
|
|
|
|
|
|
|
|
VOLUME $PROJECT_DIR
|
|
|
|
|
2016-02-10 17:26:18 +00:00
|
|
|
ENTRYPOINT [ "/root/go/src/github.com/influxdata/influxdb/build.py" ]
|