Creating a proof of concept TeamCity install (and UpSource) to help select our CI/CD pipeline
Hi,
I am using the Docker images of TeamCity (with full agent) and UpSource.
We love scripting as much as possible so I wondred if it is possible to
script the setup of projects and users? What database to use.
All the things I configure manually on the installs.
(So after the script ran, it would have it all setup right away automatically)
Please sign in to leave a comment.
Hi Bill,
Scripting projects and users should be more or less trivial. You can use the REST API for it: https://confluence.jetbrains.com/display/TCD18/REST+API
This said, this information is stored in data directory and database, which are external to the docker images, so if you can have them configured separately and simply pass the path to the data directory to the image as suggested on the docker images page. The connection to the database is defined in the data directory.
If you are planning on scripting the installation process as well, I'd recommend running the following:
Set up a basic initial installation. Set up all the basics, such as admin user, accept ToS, etc. Configure database (please use an external one), and make sure that everything works correctly. Then shut it down, and make a backup of the data directory: https://confluence.jetbrains.com/display/TCD18/Manual+Backup+and+Restore
Once you have the backup, the "new install" process is simply pulling the docker images, restoring the backup and it should be ready to go.