### Docker Setup for Single instance of MUSIC

Please update the properties/music.properties file to fit your env.
Update the music.sh file.
The beginning of the music.sh file contains various variables.

NEXUS_DOCKER_REPO - default REPO - Will read /opt/config/nexus_docker_repo.txt if other is needed.
CASS_IMG - Cassandra Image
TOMCAT_IMG - Tomcat Image
ZK_IMG - Zookeeper Image
MUSIC_IMG - Music Image containing the MUSIC war file.
WORK_DIR - Default to PWD.
CASS_USERNAME - Username for Cassandra - should match cassandra.user in music.properties file
CASS_PASSWORD - Password for Cassandra - should match cassandra.password in music.properties.
MUSIC Logs will be saved in logs/MUSIC after start of tomcat.
```bash # Start containers ./music.sh start # Stop containers ./music.sh stop ``` If you want to check out Cassandra db with cqlsh. ```bash docker exec –it music-db bash #at the prompt youcan run cqlsh as: cqlsh –u -p ``` Zookeeper: ```bash docker exec –it music-zk bash #and then run: zkCli.sh ``` For other logs do
```bash docker logs music-tomcat (tomcat)
``` to have rolling logs use –f as docker logs –f music-tomcat
```bash docker logs music-zk (zookeeper)
docker logs music-db (Cassandra )
```