a645ce70e493e0f6c92da424bd6c72e55b5a9351
[music.git] / distribution / dockermusic / README.md
1 ### Docker Setup for Single instance of MUSIC
2
3 <p>Please update the <b>properties/music.properties</b> file to fit your env.<br/>
4 Update the music.sh file.<br/>
5 The beginning of the <b>music.sh</b> file contains various variables.<br/></p>
6 NEXUS_DOCKER_REPO - default REPO - Will read /opt/config/nexus_docker_repo.txt if other is needed.<br/>
7 CASS_IMG - Cassandra Image<br/>
8 TOMCAT_IMG - Tomcat Image<br/>
9 ZK_IMG - Zookeeper Image<br/>
10 MUSIC_IMG - Music Image containing the MUSIC war file.<br/>
11 WORK_DIR -  Default to PWD.<br/>
12 CASS_USERNAME - Username for Cassandra - should match cassandra.user in music.properties 
13 file<br/>
14 CASS_PASSWORD - Password for Cassandra - should match cassandra.password in music.properties.<br/>
15
16 MUSIC Logs will be saved in logs/MUSIC after start of tomcat.<br/> 
17
18 ```bash
19 # Start containers
20 ./music.sh start
21 # Stop containers
22 ./music.sh stop
23 ```
24
25 If you want to check out Cassandra db with cqlsh.
26 ```bash
27 docker exec –it music-db bash
28 #at the prompt youcan run cqlsh as:
29 cqlsh –u <user> -p <password>
30 ```
31
32 Zookeeper:
33
34 ```bash
35 docker exec –it music-zk bash
36 #and then run:
37 zkCli.sh
38 ```
39
40 For other logs do <br/>
41 ```bash
42 docker logs music-tomcat (tomcat)<br/> 
43 ```
44 to have rolling logs use –f as docker logs –f music-tomcat<br/>
45 ```bash
46 docker logs music-zk   (zookeeper)<br/>
47 docker logs music-db  (Cassandra )<br/> 
48 ```