I’m building a Gitlab CI/CD for CUBA with Docker. Depending on what branch it will be build I need to change DB connection settings and generate new scripts for particulate Database.
My assumption was to
Change db connection parameters (I have them currently in jetty-env.xml)
Run ./gradlew assembleDbScripts
Run ./gradlew buildUberJar
Move generated zip to Docker directory
Unpack jar and upload it to docker image
Build Docker based on simple dockerfile
COPY … /opt/TitanForms
CMD ls -al
CMD chmod 777 TitanForms.jar
CMD java -Dapp.home=/opt/TitanForms-home -jar TitanForms.jar
publish the jar for particular environment.(e.g. dev, test, etc.)
I don’t know if this works correctly but I assume that JNDI connection for ./gradlew assembleDbScripts will not work properly this way… how should I do that ? any one have any options ?