X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=installation%2Fsdnc%2Fsrc%2Fmain%2Fdocker%2FDockerfile;h=15a33d5adbdd47430f6d091b65ddc0947249e60d;hb=refs%2Ftags%2F2.2.4;hp=7bb3d23ac9fa8d9f07cf2d46ba2716ca071229c9;hpb=35732113adba6f15d5cd5c6ac3db58c9ea4fe0a8;p=sdnc%2Foam.git diff --git a/installation/sdnc/src/main/docker/Dockerfile b/installation/sdnc/src/main/docker/Dockerfile index 7bb3d23a..15a33d5a 100755 --- a/installation/sdnc/src/main/docker/Dockerfile +++ b/installation/sdnc/src/main/docker/Dockerfile @@ -60,9 +60,16 @@ RUN cp /opt/onap/sdnc/data/properties/svclogic-compiler.properties /opt/onap/sdn RUN find /opt/opendaylight -name "*features*.xml" -exec sed -i -e 's|4.0.1|3.1.0|g' {} \; # Short term fix ends +# Remediate log4shell vuln +RUN apk add zip +RUN find /opt/opendaylight/system/org/ops4j/pax/logging/pax-logging-log4j2 -name 'pax-logging-log4j2*.jar' -exec zip -q -d '{}' org/apache/logging/log4j/core/lookup/JndiLookup.class \; + + # Changing ownership and permission of /opt RUN chown -R odl:odl /opt && chmod -R 755 /opt + + ## END OF STAGE0 ## #################################################