RUN rm-rf${CODESONAR_HOME}/third-party/postgresql-8.3
RUN rm-rf${CODESONAR_HOME}/third-party/postgresql-8.4
RUN rm-rf${CODESONAR_HOME}/third-party/postgresql-9.0
RUN rm-rf${CODESONAR_HOME}/third-party/postgresql-9.1
RUN rm-rf${CODESONAR_HOME}/third-party/postgresql-9.2
RUN rm-rf${CODESONAR_HOME}/third-party/postgresql-9.3
RUN rm-rf${CODESONAR_HOME}/third-party/postgresql-9.6
RUN rm-rf${CODESONAR_HOME}/csonar-eclipse/com.grammatech.codesonar.jar
RUN rm-rf${CODESONAR_HOME}/csonar-eclipse/eclipse_tests/CodeSonarTest_1.0.0.jar
RUN rm-rf${CODESONAR_HOME}/csurf/lib/codesonarj-runtimes/androidAPI23/android-6.0.1_r1.jar
RUN rm-rf${CODESONAR_HOME}/third-party/python/inst/lib/python3.9/site-packages/urllib3*${CODESONAR_HOME}/third-party/python/instmt/lib/python3.9/site-packages/urllib3*
#Remove unused certs
RUN rm-rf /opt/codesonar-6.1p0/third-party/python/inst/lib/python3.9/test
RUN rm-rf /opt/codesonar-6.1p0/third-party/python/instmt/lib/python3.9/test
RUN rm /opt/codesonar-6.1p0/third-party/python/inst/lib/python3.9/site-packages/slapdtest/certs/client.key
RUN rm /opt/codesonar-6.1p0/third-party/python/inst/lib/python3.9/site-packages/slapdtest/certs/server.key
RUN rm /opt/codesonar-6.1p0/third-party/python/instmt/lib/python3.9/site-packages/slapdtest/certs/client.key
RUN rm /opt/codesonar-6.1p0/third-party/python/instmt/lib/python3.9/site-packages/slapdtest/certs/server.key
RUN mkdir /home/codesonar/hub \
&&chown codesonar.codesonar /home/codesonar/hub
#The following is needed as RH8 does not have libnsl.so.1
RUN ln-s /usr/lib64/libnsl.so.2 /usr/lib64/libnsl.so.1