aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2022-12-22 08:45:18 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2022-12-22 08:45:18 +0000
commit8b8a4cff5ca8d1bfec1133d8713bb8931d56e1aa (patch)
treed4d22704ebd365625719af534c5be76f3d349163 /docker
parentf12e0ed01336e8afe4b3e3cc259ff902b9e579d7 (diff)
Use newer ubuntu and Python 3 to fix docker build failuer
It's related with updated on robotframework which requires Python 3. Let's see if it will work all together... Issue-ID: INT-2183 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Idf376c77d90264e9cec5aa96f5b8838ba8b01588
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile14
1 files changed, 7 insertions, 7 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index c8e97dc0..ac4e7136 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:18.04
+FROM ubuntu:20.04
## Be careful of Windows newlines
MAINTAINER "ONAP"
@@ -15,6 +15,7 @@ ARG HELM_VERSION="v3.3.4"
ARG TESTSUITE_REPO=git.onap.org/testsuite
ARG PYTHON_UTILS_REPO=git.onap.org/testsuite/python-testing-utils.git
ARG DEMO_REPO=git.onap.org/demo
+ARG DEBIAN_FRONTEND=noninteractive
COPY requirements.txt requirements.txt
@@ -39,17 +40,16 @@ RUN apt-get update \
lighttpd \
make \
net-tools \
- python2.7 python-dev python-setuptools python-wheel python-pip \
netbase \
unzip zip \
x11-utils x11-xserver-utils \
xvfb \
xxd \
wget vim \
- python3.7 python3.7-dev python3-pip && \
+ python3.8 python3.8-dev python3-pip && \
mkdir -p /var/opt/ONAP && \
- pip install --no-cache-dir -r requirements.txt && \
- pip install --no-cache-dir \
+ pip3 install --no-cache-dir -r requirements.txt && \
+ pip3 install --no-cache-dir \
git+https://$PYTHON_UTILS_REPO@$PYTHON_UTILS_TAG#egg=robotframework-onap\&subdirectory=robotframework-onap && \
git clone --depth 1 https://$TESTSUITE_REPO -b $TESTSUITE_TAG /var/opt/ONAP && \
git clone --depth 1 https://$DEMO_REPO -b $DEMO_TAG /var/opt/ONAP/demo && \
@@ -60,8 +60,8 @@ RUN apt-get update \
cp /var/opt/ONAP/setup-hvves.sh /app
-RUN python3.7 -m pip install --no-cache-dir setuptools wheel
-RUN python3.7 -m pip install --no-cache-dir virtualenv
+RUN python3.8 -m pip install --no-cache-dir setuptools wheel
+RUN python3.8 -m pip install --no-cache-dir virtualenv
# Copy the robot code
RUN mkdir -p /etc/lighttpd && \