2017-10-29 21:04:02 +00:00
|
|
|
FROM ioft/i386-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 \
|
2017-10-29 21:04:02 +00:00
|
|
|
rubygems \
|
2018-02-06 17:53:34 +00:00
|
|
|
autoconf \
|
|
|
|
libtool \
|
2017-10-29 21:04:02 +00:00
|
|
|
build-essential \
|
2015-12-03 16:44:17 +00:00
|
|
|
rpm \
|
|
|
|
zip \
|
|
|
|
python \
|
|
|
|
python-boto
|
|
|
|
|
|
|
|
RUN gem install fpm
|
|
|
|
|
|
|
|
# Install go
|
|
|
|
ENV GOPATH /root/go
|
2018-07-12 10:41:31 +00:00
|
|
|
ENV GO_VERSION 1.10.3
|
2015-12-03 16:44:17 +00:00
|
|
|
ENV GO_ARCH 386
|
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" ]
|