...
After you have performed the above configuration, execute the following to initialize the Docker container directories:
Code Block docker-compose -f <docker-compose-filename>.yaml run --no-deps --rm trifacta initfiles
When the above is started for the first time, the following directories are created on the localhost:
Directory Description ./trifacta-data Used by the
to expose theD s item item container conf
andlogs
directories./trifacta-license Place the license.json
file in this directory.Generate
.sql
file containing sql statements to create users and databases necessary for
:D s item item services Code Block docker-compose -f <docker-compose-filename>.yaml run --no-deps --rm trifacta initdatabase
The following file is created on localhost:
Directory Description ./trifacta-data/db_setup/trifacta_<database_type>_DB_objects.sql Used by the
to expose theD s item item container conf
andlogs
directories.- Create users and database:
Postgres database:
Code Block docker-compose -f <docker-compose-filename>.yaml run postgresdb sh -c "PGPASSWORD=<DB_ADMIN_PASSWORD> psql --username=<DB_ADMIN_USERNAME> --host=<DB_HOST_NAME> --port=<DB_HOST_PORT> --dbname=postgres -f /opt/trifacta/db_setup/trifacta_<DB_TYPE>_DB_objects.sql"
MySQL database:
Code Block docker-compose -f <docker-compose-filename>.yaml run mysqldb sh -c "mysql --host=<DB_HOST_NAME> --port=<DB_HOST_PORT> --user=<DB_ADMIN_USERNAME> --password=<DB_ADMIN_PASSWORD> --database=mysql < /opt/trifacta/db_setup/trifacta_mysql_<DB_TYPE>_objects.sql"
Run configuration and database migrations:
Info NOTE: During installation, the following command also creates required tables in the above databases.
Code Block docker-compose -f <docker-compose-filename>.yaml run --no-deps --rm trifacta run-migrations
Start
:D s item item container Code Block docker-compose -f <docker-compose-filename>.yaml up -d trifacta
Info | ||||
---|---|---|---|---|
NOTE: If the
docker-compose commands. |
...