2016-11-02 20:29:16 +00:00
|
|
|
FROM ubuntu:trusty
|
|
|
|
|
2016-11-03 16:21:08 +00:00
|
|
|
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y \
|
2017-02-08 15:34:38 +00:00
|
|
|
apt-transport-https \
|
2016-11-03 16:21:08 +00:00
|
|
|
python-dev \
|
2016-11-02 20:29:16 +00:00
|
|
|
wget \
|
2017-02-08 15:34:38 +00:00
|
|
|
curl \
|
2016-11-02 20:29:16 +00:00
|
|
|
git \
|
|
|
|
mercurial \
|
|
|
|
make \
|
|
|
|
ruby \
|
|
|
|
ruby-dev \
|
|
|
|
rpm \
|
|
|
|
zip \
|
2018-02-06 20:25:48 +00:00
|
|
|
python-pip \
|
|
|
|
autoconf \
|
|
|
|
libtool
|
2016-11-02 20:29:16 +00:00
|
|
|
|
2016-11-03 00:01:04 +00:00
|
|
|
RUN pip install boto requests python-jose --upgrade
|
2016-11-02 20:29:16 +00:00
|
|
|
RUN gem install fpm
|
|
|
|
|
2016-11-03 00:01:04 +00:00
|
|
|
# Install node
|
2018-03-27 18:26:57 +00:00
|
|
|
ENV NODE_VERSION v8.10.0
|
|
|
|
RUN wget -q https://nodejs.org/dist/${NODE_VERSION}/node-${NODE_VERSION}-linux-x64.tar.gz; \
|
2017-05-16 22:04:02 +00:00
|
|
|
tar -xvf node-${NODE_VERSION}-linux-x64.tar.gz -C / --strip-components=1; \
|
|
|
|
rm -f node-${NODE_VERSION}-linux-x64.tar.gz
|
2016-11-03 00:01:04 +00:00
|
|
|
|
2016-11-02 20:29:16 +00:00
|
|
|
# Install go
|
|
|
|
ENV GOPATH /root/go
|
2018-03-27 18:26:57 +00:00
|
|
|
ENV GO_VERSION 1.10
|
2016-11-02 20:29:16 +00:00
|
|
|
ENV GO_ARCH amd64
|
|
|
|
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
|
|
|
|
|
2019-01-08 00:37:16 +00:00
|
|
|
ENV PROJECT_DIR $GOPATH/src/github.com/influxdata/influxdb/chronograf
|
2016-11-02 20:29:16 +00:00
|
|
|
ENV PATH $GOPATH/bin:$PATH
|
|
|
|
RUN mkdir -p $PROJECT_DIR
|
|
|
|
WORKDIR $PROJECT_DIR
|
|
|
|
|
|
|
|
VOLUME $PROJECT_DIR
|
|
|
|
|
2019-01-08 00:37:16 +00:00
|
|
|
ENTRYPOINT [ "/root/go/src/github.com/influxdata/influxdb/chronograf/etc/build.py" ]
|