Yuli Shlosberg | a330c37 | 2018-02-20 16:04:23 +0200 | [diff] [blame] | 1 | FROM openjdk:8-jdk-alpine |
| 2 | |
| 3 | ARG HTTP_PROXY |
| 4 | ARG HTTPS_PROXY |
| 5 | |
| 6 | ENV HTTP_PROXY ${HTTP_PROXY} |
| 7 | ENV HTTPS_PROXY ${HTTPS_PROXY} |
| 8 | |
| 9 | RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi |
| 10 | RUN if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi |
| 11 | |
| 12 | # Install packages |
Yuli Shlosberg | ccba15a | 2018-02-20 16:40:46 +0200 | [diff] [blame^] | 13 | RUN apk add --no-cache \ |
| 14 | libcurl\ |
| 15 | curl\ |
| 16 | jq |
Yuli Shlosberg | a330c37 | 2018-02-20 16:04:23 +0200 | [diff] [blame] | 17 | |
| 18 | # Install packages only needed for building |
| 19 | RUN apk add --no-cache --virtual .build-dependencies build-base curl-dev |
| 20 | |
| 21 | # Needed for pycurl |
| 22 | ENV PYCURL_SSL_LIBRARY=openssl |
| 23 | |
| 24 | # Pip stuff |
| 25 | RUN pip install influxdb pycurl requests |
| 26 | |
| 27 | # Install Chef |
| 28 | RUN 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 |