Areli Fuss | 0a3899f | 2017-11-19 13:28:08 +0200 | [diff] [blame] | 1 | FROM elasticsearch:2.4.6-alpine |
Areli Fuss | 547839b | 2017-08-22 15:34:37 +0300 | [diff] [blame] | 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 | if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi |
| 11 | |
Areli Fuss | 0a3899f | 2017-11-19 13:28:08 +0200 | [diff] [blame] | 12 | RUN apk add --no-cache \ |
Areli Fuss | 547839b | 2017-08-22 15:34:37 +0300 | [diff] [blame] | 13 | curl \ |
Areli Fuss | 0a3899f | 2017-11-19 13:28:08 +0200 | [diff] [blame] | 14 | vim \ |
| 15 | && : |
Areli Fuss | 547839b | 2017-08-22 15:34:37 +0300 | [diff] [blame] | 16 | |
| 17 | RUN mkdir -p /var/chef/nodes |
| 18 | |
Areli Fuss | 0a3899f | 2017-11-19 13:28:08 +0200 | [diff] [blame] | 19 | # Install Chef |
| 20 | RUN set -ex && \ |
| 21 | apk add --no-cache bash build-base ruby ruby-dev libffi-dev libxml2-dev && \ |
| 22 | gem install chef berkshelf io-console --no-document |