Build nginx-vts module for nginx stats
This commit is contained in:
parent
643a06e73a
commit
083ba2bc78
2 changed files with 110 additions and 3 deletions
17
Dockerfile
17
Dockerfile
|
@ -13,12 +13,19 @@ WORKDIR $QUAYDIR
|
|||
|
||||
# This is so we don't break http golang/go#17066
|
||||
# When Ubuntu has nginx >= 1.11.0 we can switch back.
|
||||
RUN add-apt-repository ppa:nginx/development
|
||||
ENV NGINX_GPGKEY 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \
|
||||
--keyserver-options timeout=10 --recv-keys "${NGINX_GPGKEY}"
|
||||
|
||||
RUN add-apt-repository --enable-source \
|
||||
"deb http://nginx.org/packages/ubuntu/ xenial nginx"
|
||||
|
||||
# Add Yarn repository until it is officially added to Ubuntu
|
||||
RUN curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
||||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||
&& add-apt-repository "deb https://dl.yarnpkg.com/debian/ stable main"
|
||||
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_8.x | bash -
|
||||
|
||||
# Install system packages
|
||||
RUN apt-get update && apt-get upgrade -y \
|
||||
&& apt-get install -y \
|
||||
|
@ -55,7 +62,11 @@ RUN apt-get update && apt-get upgrade -y \
|
|||
python-pip \
|
||||
python-virtualenv \
|
||||
yarn=0.22.0-1 \
|
||||
w3m # 27MAR2018
|
||||
w3m # 13JUL2018
|
||||
|
||||
# Install nginx-module-vts
|
||||
COPY scripts/build-nginx-vts.sh /tmp/build-nginx-vts.sh
|
||||
RUN /tmp/build-nginx-vts.sh v0.1.18
|
||||
|
||||
# Install cfssl
|
||||
RUN curl -fsSL -o /bin/cfssljson https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64 \
|
||||
|
|
Reference in a new issue