pre-configuring database connection

Hello,

I'm scripting a virtual machine to

  • pull Docker containers with TC Server, TC Agent and a database;
  • start all of them and get TC environment running with minimum clicks by the user

TC database connection configuration is stored in <data>/config/database.properties file. However if I attempt to prepare the configuration file and JDBC driver before the start of TC server, the last one complains: "The Data Directory contains files or directories that don't belong to TeamCity."

Is there a way to let TC server to accept the exising file and to create the database with provided connection details?

With kind regards,
Viktor

1 comment
Comment actions Permalink

Hi Viktor,

The behavior has been changed in TeamCity 9.0, now TeamCity considers the existing 'database.properties' file. Please try new version.

0

Please sign in to leave a comment.