2016-08-31 19:03:44 +00:00
|
|
|
FROM ioft/i386-ubuntu:14.04
|
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 \
|
|
|
|
rpm \
|
|
|
|
zip \
|
|
|
|
python \
|
|
|
|
python-boto
|
|
|
|
|
|
|
|
RUN gem install fpm
|
|
|
|
|
|
|
|
# Install go
|
|
|
|
ENV GOPATH /root/go
|
2017-04-26 17:28:39 +00:00
|
|
|
ENV GO_VERSION 1.8.1
|
2015-12-03 16:44:17 +00:00
|
|
|
ENV GO_ARCH 386
|
|
|
|
RUN wget https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz; \
|
|
|
|
tar -C /usr/local/ -xf /go${GO_VERSION}.linux-${GO_ARCH}.tar.gz ; \
|
|
|
|
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" ]
|