-
Notifications
You must be signed in to change notification settings - Fork 250
Setup Teletraan using Docker and Docker compose
This is the instructions for setting up Teletraan for development using docker and docker-compose. By executing docker-compose command, it will bring up teletraan server, deployboard and database (optional) all at the same time.
-
Install [Java 8] (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) and Maven Java and Maven are used to compile Teletraan server code
-
Compile Teletraan Server Code
$ cd $TELETRAAN_ROOT/deploy-service
$ mvn clean package -DskipTests
- Run docker-compose
$ cd $TELETRAAN_ROOT/
$ docker-compose build
$ docker-compose up
Alternatively, you could start Teletraan without database. Teletraan will use a file-based embedded database in this case. Notice you do not need to provision database and upgrade database if you choose to use the embedded database.
$ cd $TELETRAAN_ROOT/
$ docker-compose build
$ export UID && docker-compose -f docker-compose-no-db.yml up
- (optional) Provision database (Only required on first time)
$ docker exec teletraan_mysql /var/teletraan/tools/deploydb.sh
- (optional) Upgrade database (When there is a DB schema change or pull a new version)
$ docker exec teletraan_mysql /var/teletraan/tools/upgrade.sh
With Teletraan server and Deploy Board running, you can now checkout the Teletraan UI at the default local address.