diff --git a/README.md b/README.md index ecba593..13928e5 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,28 @@ # docker-pinpoint -Create docker machine -``` -docker-machine create --driver virtualbox --virtualbox-disk-size "50000" --engine-storage-driver "overlay" --virtualbox-memory "4096" --virtualbox-cpu-count "8" docker-vm -``` +This repo contains the docker images of Pinpoint, or you can just use the docker compose file run pinpoint in seconds. -Configure your shell -``` -eval "$(docker-machine env docker-vm)" -``` +### To build the images +* Go to a folder +* `docker build -t repo-name:latest .` to build the image + +### To run all containers -To run all containers ``` docker-compose up -d ``` +Open your browser and then go to + + +### Add your own Java based application to be monitored. + +```shell +java -javaagent:/some-absolute-path/pinpoint-agent-1.6.1/pinpoint-bootstrap-1.6.1.jar -Dpinpoint.agentId=some-union-id -Dpinpoint.applicationName=some-name -jar build/libs/wise-log-1.0.0-SNAPSHOT.jar + +``` + + If you plan to use external volumes for hbase you should fill hbase first. Please run this script inside hbase container ``` diff --git a/docker-compose.yml b/docker-compose.yml index 89ab829..ae7d429 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -44,7 +44,7 @@ pinpoint-web: expose: - "8080" ports: - - "3080:8080" + - "28080:8080" environment: HBASE_HOST: hbase HBASE_PORT: 2181