Skip to content

Commit 2f2a2ee

Browse files
committed
readme info
1 parent 35e15a1 commit 2f2a2ee

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,24 @@ The artifacts (directory and tar.gz by default) which get built into
3030
`src/main/assembly`.
3131

3232

33+
### To Test
34+
35+
Testing requires DB's created. Brooklyn blueprints are one good way to do this.
36+
37+
To test quickly locally, you can also use:
38+
39+
docker run -e MYSQL_ROOT_PASSWORD=password -e MYSQL_ROOT_HOST=172.17.0.1 -P -d mysql/mysql-server:latest
40+
docker ps # note the port, and use that below, eg 32771
41+
mysql -u root -ppassword -h 127.0.0.1 -P 32771
42+
43+
In MySQL, create a DB, e.g. `create database foo` (or even [this demo](http://www.wikihow.com/Create-a-Database-in-MySQL)),
44+
and then you're ready to go; use the data above to create a blueprint.
45+
46+
Note you may need to pay attention to the CF-accessible IP address when you do the actual test --
47+
hence the use of the `172.*` address above (for Docker; if registering with PCF Dev you need to use
48+
the interface it sees in your actual blueprint, e.g. `192.168.11.1`).
49+
50+
3351
### More About Apache Brooklyn
3452

3553
Apache Brooklyn is a code library and framework for managing applications in a

0 commit comments

Comments
 (0)