From b571ddb3f9f4a42f79977421eab5f0b982a1ca61 Mon Sep 17 00:00:00 2001 From: Areli Fuss Date: Wed, 18 Oct 2017 15:22:40 +0300 Subject: Update Dockerfile user to enable apt-get 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 --- base_sdc-backend/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'base_sdc-backend') diff --git a/base_sdc-backend/Dockerfile b/base_sdc-backend/Dockerfile index 2bdc6d8..b363160 100644 --- a/base_sdc-backend/Dockerfile +++ b/base_sdc-backend/Dockerfile @@ -7,9 +7,11 @@ ENV HTTP_PROXY ${HTTP_PROXY} 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 \ @@ -22,8 +24,11 @@ RUN apt-get -y update && apt-get -y install \ gcc \ python-pip +USER jetty + # install chef-solo RUN curl -L https://omnitruck.chef.io/install.sh | bash RUN pip install pycurl + -- cgit 1.2.3-korg