add an Inventory Docker file
[transportpce.git] / tests / inventory / start_inventory.sh
1 #/bin/bash
2
3 #to use unix socket, we need to bind the host and container directories
4 #since UID are different, we also need to change the directory permissions on the host system
5
6 #sudo service mysql stop
7 sudo mkdir -p /var/run/mysqld/
8 sudo chmod 777 /var/run/mysqld/
9 sudo docker run --name inventory0 -p 3306:3306 -v /var/run/mysqld/:/var/run/mysqld/ tpce/inventory
10 #sudo chmod 755 /var/run/mysqld/