Upgrade docker images to use Python 3 44/133944/2
authoreschcam <cameron.scholes@est.tech>
Thu, 30 Mar 2023 12:47:20 +0000 (13:47 +0100)
committereschcam <cameron.scholes@est.tech>
Fri, 31 Mar 2023 08:13:35 +0000 (09:13 +0100)
Issue-ID: SDC-4456
Signed-off-by: eschcam <cameron.scholes@est.tech>
Change-Id: Ifa83fa9bc889920b9d29058870981a0ae0364240

asdctool/sdc-cassandra-init/Dockerfile
docs/conf.yaml [deleted file]
openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile
sdc-os-chef/sdc-cassandra/Dockerfile

index cecb1f3..82ac337 100644 (file)
@@ -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  && \
diff --git a/docs/conf.yaml b/docs/conf.yaml
deleted file mode 100644 (file)
index ab59281..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
----
-project_cfg: onap
-project: onap
-
-# Change this to ReleaseBranchName to modify the header
-default-version: latest
-#
index ce5fc02..d2307b1 100644 (file)
@@ -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  && \
index 4671cb0..2c62e38 100644 (file)
@@ -6,9 +6,12 @@ RUN apt-get -o Acquire::Check-Valid-Until=false update && \
       curl \
       wget \
       perl \
-      python \
+      python3 \
+      python3-pip \
       ntp && \
     apt-get -y autoremove && \
+    pip3 install cqlsh==6.1.0 && \
+    rm -rf "/opt/cassandra/bin/cqlsh*" && \
     curl -L https://omnitruck.chef.io/install.sh | bash -s -- -v 13.12.14
 
 COPY chef-solo /root/chef-solo/