summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramki krishnan <ramkri123@gmail.com>2019-01-06 01:27:41 +0000
committerGerrit Code Review <gerrit@onap.org>2019-01-06 01:27:41 +0000
commit264341d5466c2b5e690be727839d806826b90915 (patch)
tree24057e467a1ba7c865824efd9f4e3018bddea25e
parentf2a0d8e5a55f5064d0eeb2a261fa58a5f240b6e1 (diff)
parent3a41253f6d3c7c957ef119d1b4fad3b653030edc (diff)
Merge "Migrate HAS base image to alpine."
-rwxr-xr-xconductor/docker/Dockerfile23
1 files changed, 18 insertions, 5 deletions
diff --git a/conductor/docker/Dockerfile b/conductor/docker/Dockerfile
index 0222c9f..b68ebaf 100755
--- a/conductor/docker/Dockerfile
+++ b/conductor/docker/Dockerfile
@@ -15,7 +15,7 @@
#
# -------------------------------------------------------------------------
-FROM python:2.7
+FROM python:2.7-alpine
ARG MVN_ARTIFACT_VERSION
ARG REPO
@@ -29,15 +29,28 @@ ENV CON_PORT "8091"
EXPOSE ${CON_PORT}
-RUN apt-get update && apt-get --assume-yes install python-setuptools && \
-apt-get install -y unzip curl wget git vim
+# Add required libraries
+RUN apk add --no-cache curl \
+ gcc \
+ libffi-dev \
+ linux-headers \
+ musl-dev \
+ git \
+ libxml2-dev \
+ libxslt-dev \
+ openssl-dev \
+ py-setuptools \
+ unzip \
+ wget \
+ xvfb
-# HAS
WORKDIR /opt/has
RUN wget -O /opt/has.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=${REPO}&g=org.onap.optf.has&a=optf-has-conductor&e=zip&v=${MVN_ARTIFACT_VERSION}" && \
unzip -q -o -B /opt/has.zip -d /opt/has && \
rm -f /opt/has.zip
RUN mkdir -p /var/log/onap/optf/has/
-RUN cd /opt/has/conductor/ && git init && pip install -e .
+RUN cd /opt/has/conductor && \
+ git init && \
+ pip install -e .
COPY api_paste.ini /usr/local/bin/api_paste.ini