diff options
author | Adolfo Perez-Duran <ado@orangemonk.net> | 2018-11-05 06:52:48 -0700 |
---|---|---|
committer | Adolfo Perez-Duran <adolfo@orangemonk.net> | 2018-11-28 13:40:44 +0000 |
commit | 3a41253f6d3c7c957ef119d1b4fad3b653030edc (patch) | |
tree | d4edbb16e270c041380914b3af1870396a088aec | |
parent | ed7c491c37db044b07ab97781a2d8cab63bcfe99 (diff) |
Migrate HAS base image to alpine.
Make HAS container image smaller and platform-agnostic.
Issue-ID: INT-551
Change-Id: Icee2b3137142dde1689de71f30bb0d5c791ce84c
Signed-off-by: Adolfo Perez-Duran <adolfo@orangemonk.net>
-rwxr-xr-x | conductor/docker/Dockerfile | 23 |
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 |