diff --git a/docker/ubi8/Dockerfile-fips b/docker/ubi8/Dockerfile-fips index d5b782da5..581ca4f49 100644 --- a/docker/ubi8/Dockerfile-fips +++ b/docker/ubi8/Dockerfile-fips @@ -5,10 +5,19 @@ RUN yum -y install java-11-openjdk-devel wget vim curl net-tools nettle RUN yum -y update RUN adduser spinnaker RUN mkdir -p /opt/echo/plugins -ARG CUSTOMPLUGIN_RELEASEVERSION -ENV CUSTOMPLUGIN_RELEASEVERSION=$CUSTOMPLUGIN_RELEASEVERSION -RUN wget -O Opsmx.EchoEventPlugin-EchoEventPlugin-v1.0.1-SNAPSHOT.zip -c https://github.com/OpsMx/Customplugins/releases/download/${CUSTOMPLUGIN_RELEASEVERSION}/EchoEventPlugin-v1.0.1-SNAPSHOT.zip -P /opt/echo/plugins -RUN mv Opsmx.EchoEventPlugin-EchoEventPlugin-v1.0.1-SNAPSHOT.zip /opt/echo/plugins/ + +#custom plugin zip files adding + +ARG CUSTOMPLUGIN_RELEASE_VERSION +ENV CUSTOMPLUGIN_RELEASE_VERSION=$CUSTOMPLUGIN_RELEASE_VERSION +ARG CUSTOMPLUGIN_RELEASEVERSION_PLUGIN +ENV CUSTOMPLUGIN_RELEASEVERSION_PLUGIN=$CUSTOMPLUGIN_RELEASEVERSION_PLUGIN +ARG CUSTOMPLUGIN_RELEASEORG +ENV CUSTOMPLUGIN_RELEASEORG=$CUSTOMPLUGIN_RELEASEORG + +RUN wget -O Opsmx.EchoEventPlugin-EchoEventPlugin-${CUSTOMPLUGIN_RELEASE_VERSION}.zip -c https://github.com/${CUSTOMPLUGIN_RELEASEORG}/Customplugins/releases/download/v${CUSTOMPLUGIN_RELEASEVERSION_PLUGIN}/EchoEventPlugin-v${CUSTOMPLUGIN_RELEASE_VERSION}-SNAPSHOT.zip -P ${SERVICE_PLUGIN_PATH} +RUN mv Opsmx.EchoEventPlugin-EchoEventPlugin-${CUSTOMPLUGIN_RELEASE_VERSION}.zip ${SERVICE_PLUGIN_PATH} + RUN chmod -R 777 /opt/echo/plugins/ RUN chown -R spinnaker:spinnaker /opt/ USER spinnaker