dialacci Posted January 22, 2020 Share Posted January 22, 2020 I am building a container based on Jasper Server CE 7.5. Everything works great until the init routine tries to create the keystore, prompting for a yes/no input and causing a build failurewait-for-it.sh: jrspostgres:5432 is available after 0 seconds/usr/src/jasperreports-server/buildomatic /usr/local/tomcatUnable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jarBuildfile: /usr/src/jasperreports-server/buildomatic/build.xml[create-ks] A new encryption key and a new keystore are about to be created. Any previously created key and keystore will become invalid and the corresponding passwords unusable. If you think this JasperReports Server instance already has a keystore configured by another OS user, stop this process and configure the path in keystore.init.propertiesfile, then run this command again. See the JasperReports Server Security Guide for details. Do you want to continue? (y/N)BUILD FAILED/usr/src/jasperreports-server/buildomatic/build.xml:58: The following error occurred while executing this line:/usr/src/jasperreports-server/buildomatic/bin/setup.xml:377: Keystore creation was canceled.Total time: 0 seconds[/code]obviously I can not answer "yes" during the build interactively and do not want to get into hacky solutions with Expect - has anyone else ran into this? Link to comment Share on other sites More sharing options...
swood_1 Posted January 23, 2020 Share Posted January 23, 2020 # not doing app server management during command line work cat >> ${BUILDOMATIC_HOME}/default_master.properties<<-_EOL_appServerType=skipAppServerCheck_EOL_ Link to comment Share on other sites More sharing options...
demanic Posted February 21, 2020 Share Posted February 21, 2020 Had to read the code but the solution is pretty simple.RUN export BUILDOMATIC_MODE=' '; ./js-install-ce.sh [minimal] Link to comment Share on other sites More sharing options...
a_gan Posted February 28, 2020 Share Posted February 28, 2020 Could you please explain the solution in detail?. Where did you add this?.RUN export BUILDOMATIC_MODE=' '; ./js-install-ce.sh [minimal] Link to comment Share on other sites More sharing options...
demanic Posted March 1, 2020 Share Posted March 1, 2020 Well I was building jasperreposts a docker VM. To succesfuly build I followed the recipe below:1) copy the TIB_js-jrs-cp_7.5.0_bin.zip (unzipped of course) on to the vm.2) Create a default_master.properties file inside jasperserver/buildomatic (sample configs exist in buildomatic/sample_conf).3) enter buildomatic directory and execute export BUILDOMATIC_MODE=' ';./js-ant gen-config (here is where the keystore is created)4) ensure the db is up and running; execute ./js-install-ce.sh minimal. if the db already exists the script turns interactive again asking whether to recreate the db. The solution to this is to run sed -i 's/name="prompt" default="true"/name="prompt" default="false"/' bin/db-common.xml so that the db gets recreated. The only way I found so as to leave the db intact is to answer y in interactive mode.Restart Tomcat and get ready to go. I hope this is enough detail.Cheers Link to comment Share on other sites More sharing options...
liviu.vasile Posted March 3, 2020 Share Posted March 3, 2020 I was able to go past that point and install my docker by adding to my Dockerfile this lineENV BUILDOMATIC_MODE=script"script" was my choice, you can put anything there, as long as it's different from "interactive". There is only one IF in the script.xml, specifically for create-ks.<if> <and> <isset property="env.BUILDOMATIC_MODE"/> <equals arg1="${env.BUILDOMATIC_MODE}" arg2="interactive" /> </and> <then> <create-ks ks="${ks}" ksp="${ksp}" propsFile="${masterPropsSource}" confirmArg="y" confirmMessage="A new encryption key and a new keystore are about to be created. Any previously created key and keystore will become invalid and the corresponding passwords unusable. If you think this JasperReports Server instance already has a keystore configured by another OS user, stop this process and configure the path in keystore.init.properties file, then run this command again. See the JasperReports Server Security Guide for details. Do you want to continue? (%s/N)"/> </then> <else> <echo message=""/> <create-ks ks="${ks}" ksp="${ksp}" propsFile="${masterPropsSource}" warningMessage="WARNING: A new encryption key and a new keystore are about to be created."/> </else></if> Link to comment Share on other sites More sharing options...
a_gan Posted March 3, 2020 Share Posted March 3, 2020 Thank you. I was able to get it working Link to comment Share on other sites More sharing options...
rob.ferguson Posted June 9, 2020 Share Posted June 9, 2020 I used js-docker as a starting point and then I updated it to work with the Community Edition of JasperReports Server.See: https://github.com/Robinyo/serendipity-api/tree/master/projects/spring-boot/server/services/jasperreports-server Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now