diff options
author | eschcam <cameron.scholes@est.tech> | 2023-03-30 13:47:20 +0100 |
---|---|---|
committer | eschcam <cameron.scholes@est.tech> | 2023-03-31 09:13:35 +0100 |
commit | 94176d70ee48b1703981cd8786c306f7c055e15d (patch) | |
tree | c72261e3e5eb40020a64a92268337f31b8a1e4d7 /openecomp-be/dist | |
parent | 1369eb7e001cbfb200dcca36e7c2439121e916e3 (diff) |
Upgrade docker images to use Python 3
Issue-ID: SDC-4456
Signed-off-by: eschcam <cameron.scholes@est.tech>
Change-Id: Ifa83fa9bc889920b9d29058870981a0ae0364240
Diffstat (limited to 'openecomp-be/dist')
-rw-r--r-- | openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile b/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile index ce5fc02bd3..d2307b1380 100644 --- a/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile +++ b/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile @@ -8,9 +8,11 @@ RUN mkdir ~/.cassandra/ && \ echo 'version=3.4.4' >> ~/.cassandra/cqlshrc USER root -RUN apt-get update --allow-releaseinfo-change && apt-get install -y python-pip && \ - python -m pip install --upgrade pip \ - pip install cqlsh==6.0.0 && \ +RUN apt-get update --allow-releaseinfo-change && \ + apt-get purge python* -y && \ + apt-get install -y python3-pip && \ + python3 -m pip install --upgrade pip && \ + pip3 install cqlsh==6.1.0 && \ mkdir ~/.cassandra/ && \ echo '[cql]' > ~/.cassandra/cqlshrc && \ echo 'version=3.4.4' >> ~/.cassandra/cqlshrc && \ |