blob: 27e03d4a3c433ac92bed0decdbf0a225416c1694 [file] [log] [blame]
Yuli Shlosberga330c372018-02-20 16:04:23 +02001FROM openjdk:8-jdk-alpine
2
3ARG HTTP_PROXY
4ARG HTTPS_PROXY
5
6ENV HTTP_PROXY ${HTTP_PROXY}
7ENV HTTPS_PROXY ${HTTPS_PROXY}
8
9RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi
10RUN if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi
11
12# Install packages
Yuli Shlosbergccba15a2018-02-20 16:40:46 +020013RUN apk add --no-cache \
14libcurl\
15curl\
16jq
Yuli Shlosberga330c372018-02-20 16:04:23 +020017
18# Install packages only needed for building
19RUN apk add --no-cache --virtual .build-dependencies build-base curl-dev
20
21# Needed for pycurl
22ENV PYCURL_SSL_LIBRARY=openssl
23
24# Pip stuff
25RUN pip install influxdb pycurl requests
26
27# Install Chef
28RUN set -ex && \
29 apk add --no-cache bash build-base ruby ruby-dev libffi-dev libxml2-dev && \
30 gem install chef berkshelf io-console --no-document