Clean up Dockerfile
[sdc.git] / sdc-os-chef / sdc-sanity / Dockerfile
1 FROM ubuntu:16.04
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 apt-get -y update && \
11     apt-get -y install --no-install-recommends apt-utils && \
12     apt-get install curl \
13                     default-jre 
14                     openjdk-8-jdk
15                     vim && \
16     update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
17     if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi 
18
19 COPY chef-solo /root/chef-solo/
20 COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/
21
22 # install chef-solo
23 RUN curl -L https://omnitruck.chef.io/install.sh | bash
24
25 COPY startup.sh /root/
26 RUN chmod 770 /root/startup.sh
27
28 ENTRYPOINT [ "/root/startup.sh" ]