|
|
FROM eclipse-temurin:17 as jre-build |
|
|
|
|
|
|
|
|
RUN $JAVA_HOME/bin/jlink \ |
|
|
--add-modules ALL-MODULE-PATH \ |
|
|
--strip-debug \ |
|
|
--no-man-pages \ |
|
|
--no-header-files \ |
|
|
--compress=2 \ |
|
|
--output /javaruntime |
|
|
|
|
|
|
|
|
FROM debian:bullseye-slim |
|
|
ENV JAVA_HOME=/opt/java/openjdk |
|
|
ENV PATH "${JAVA_HOME}/bin:${PATH}" |
|
|
COPY --from=jre-build /javaruntime $JAVA_HOME |
|
|
|
|
|
RUN mkdir -p /usr/local/app && \ |
|
|
apt -y update && \ |
|
|
apt -y install wget apt-utils libfreetype6 fontconfig fonts-dejavu |
|
|
|
|
|
RUN mkdir /installer && cd /installer && \ |
|
|
wget --quiet -O install4j_unix_10_0_5.tar.gz \ |
|
|
https://download.ej-technologies.com/install4j/install4j_unix_10_0_5.tar.gz && \ |
|
|
tar xzf install4j_unix_10_0_5.tar.gz |
|
|
|
|
|
COPY ./license.txt \ |
|
|
./vcell-client/src/main/resources/thirdpartylicenses.txt \ |
|
|
./vcell-client/src/main/resources/vcellSplash.png \ |
|
|
/vcellclient/ |
|
|
|
|
|
COPY ./bionetgen /vcellclient/bionetgen |
|
|
COPY ./exampleModels /vcellclient/exampleModels |
|
|
COPY ./localsolvers /vcellclient/localsolvers |
|
|
COPY ./nativelibs /vcellclient/nativelibs |
|
|
|
|
|
COPY ./vcell-client/target/vcell-client-0.0.1-SNAPSHOT.jar \ |
|
|
./vcell-client/target/maven-jars/*.jar \ |
|
|
/vcellclient/vcell-client/target/maven-jars/ |
|
|
|
|
|
COPY ./docker/build/installers /config/ |
|
|
|
|
|
WORKDIR /config |
|
|
|
|
|
VOLUME /outputdir |
|
|
VOLUME /buildsecrets |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENV winCodeSignKeystore_pfx=Expecting_this_to_be_defined_runtime_for_winCodeSignKeystore_pfx \ |
|
|
macCodeSignKeystore_p12=Expecting_this_to_be_defined_runtime_for_macCodeSignKeystore_p12 \ |
|
|
winCodeSignKeystore_pswdfile=Expecting_this_to_be_defined_runtime_for_winCodeSignKeystore_pswdfile \ |
|
|
macCodeSignKeystore_pswdfile=Expecting_this_to_be_defined_runtime_for_macCodeSignKeystore_pswdfile \ |
|
|
Install4J_product_key_file=Expecting_this_to_be_defined_runtime_for_Install4J_product_key_file |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENV compiler_updateSiteBaseUrl="update-site-not-set" \ |
|
|
compiler_vcellIcnsFile=/install/icons/vcell.icns \ |
|
|
compiler_mavenRootDir=/vcellclient \ |
|
|
compiler_softwareVersionString="SOFTWARE-VERSION-NOT-SET" \ |
|
|
compiler_Site=SITE-NOT-SET \ |
|
|
compiler_vcellVersion=VCELL-VERSION-NOT-SET \ |
|
|
compiler_vcellBuild=VCELL-BUILD-NOT-SET \ |
|
|
compiler_rmiHosts="apihost-not-set:api-port-not-set" \ |
|
|
compiler_serverPrefixV0="server-prefix-v0-not-set" \ |
|
|
compiler_serverPrefixV1="server-prefix-v1-not-set" \ |
|
|
compiler_bioformatsJarFile=vcell-bioformats-0.0.9-jar-with-dependencies.jar \ |
|
|
compiler_bioformatsJarDownloadURL=http://vcell.org/webstart/vcell-bioformats-0.0.9-jar-with-dependencies.jar \ |
|
|
compiler_applicationId="client-applicationId-not-set" |
|
|
|
|
|
ENTRYPOINT [ "/config/build_installers.sh" ] |