Run distributorapi in Python 3.8 41/111241/1 2.12.2
authorMichal Jagiello <michal.jagiello@t-mobile.pl>
Thu, 13 Aug 2020 14:02:27 +0000 (14:02 +0000)
committerMichal Jagiello <michal.jagiello@t-mobile.pl>
Thu, 13 Aug 2020 14:02:27 +0000 (14:02 +0000)
Use official ONAP Python base image

Issue-ID: DCAEGEN2-2292

Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I5fc17e0257a31aa35fe81e24b97c364b73e5c72a

mod/distributorapi/Dockerfile
mod/distributorapi/tox.ini

index f82607d..84ee6b5 100644 (file)
@@ -1,5 +1,6 @@
 # ============LICENSE_START=======================================================
 # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
+#  Copyright 2020 Deutsche Telekom. All rights reserved.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # See the License for the specific language governing permissions and
 # limitations under the License.
 # ============LICENSE_END=========================================================
-FROM python:3.7-alpine
+FROM nexus3.onap.org:10001/onap/integration-python:latest
 
-ARG UID=1000
-ARG GID=1000
-COPY . /code
-WORKDIR /code
-RUN pip install . && \
-    addgroup -g $GID dcaemod && \
-    adduser -s /bin/bash -u $UID -G dcaemod -D dcaemod
-USER dcaemod
+COPY --chown=onap:onap . /app
+RUN pip install .
 EXPOSE 8080
 ENV DISTRIBUTOR_DEBUG=0
+ENV PATH="$PATH:/home/onap/.local/bin"
 CMD start-distributor-api
index a0bebea..3f8a43b 100644 (file)
@@ -1,5 +1,5 @@
 [tox]
-envlist = py37
+envlist = py37,py38
 
 [testenv]
 deps=