Due to change in the base container
it is needed to replace the default user
before the apt-get commands in dockers
that are based on jetty:9.3-jre8
Change-Id: I675654c638d4e1bc81b1d1ae0509935aa5b1107e
Issue-Id: SDC-477
Signed-off-by: Areli Fuss <af732p@att.com>
ENV HTTPS_PROXY ${HTTPS_PROXY}
RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi && \
ENV HTTPS_PROXY ${HTTPS_PROXY}
RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi && \
- if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi
+ if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi
RUN apt-get -y update && apt-get -y install \
apt-utils \
curl \
RUN apt-get -y update && apt-get -y install \
apt-utils \
curl \
# install chef-solo
RUN curl -L https://omnitruck.chef.io/install.sh | bash
RUN pip install pycurl
# install chef-solo
RUN curl -L https://omnitruck.chef.io/install.sh | bash
RUN pip install pycurl
ENV HTTPS_PROXY ${HTTPS_PROXY}
RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi && \
ENV HTTPS_PROXY ${HTTPS_PROXY}
RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi && \
- if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi
+ if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi
+
+USER root
RUN apt-get -y update && apt-get -y install \
apt-utils \
curl \
vim
RUN apt-get -y update && apt-get -y install \
apt-utils \
curl \
vim
# install chef-solo
RUN curl -L https://omnitruck.chef.io/install.sh | bash
# install chef-solo
RUN curl -L https://omnitruck.chef.io/install.sh | bash