Talend Administration Center running in a Docker Container
We have a requirement within our infrastructure to run TAC within a Docker container. We have successfully created and are running the TAC in containers for CI, QA and Prod. We use a base docker image for all three repositories/environments. We would like to be able to set the database configuration at container run time. Is there a .properties file that we can override (load) prior to the tomcat startup to set the db configuration for that the TAC uses to obtains its dbconfig settings when Tomcat starts? We tried performing this via the unattended install (which works), but that require 3 separate docker images, breaking our deployment automation. We are using 6.1.1 Realtime for Big Data, PostgreSQL 9.4, Tomcat 8.
Re: Talend Administration Center running in a Docker Container
Have you tried deploying with docker-compose and running docker-compose up -d to start the containers? We are doing something similar and I have had great success with automating deployment and configuration with docker-compose and ansible.
Also, do you persist your volume layer on your db (i.e. -v /mydata/dir:/var/lib/mysql)? If so you can tear down the containers and reattach them each time to that same data store. lastly, have you dumped and restored the configuration table on deploy? This can be done with a custom script (dockerentry-point.sh that executes the container starts then deploys the table and inserts the config).
TAC runs better in docker with multiple containers than it does in one large 11gb container. by breaking TAC into a db, search, ect you get a faster deploy. we've broken out the command line and job server as well so that nothing is coupled. we've found that by doing this we've gotten tac down from 11gb to 1.356gb speeding our deployment with docker-compose and ansible.