Public | Automated Build

Last pushed: a year ago
Short Description
Pinpoint development environment.
Full Description

Usage

You can use the container like this:

$ git clone https://github.com/naver/pinpoint
$ docker run --rm -v $(pwd)/pinpoint:/pinpoint:rw -v /Users/$(whoami)/.m2:/root/.m2:rw tangrui/pinpoint-development

Description

  1. The first -v mount the cloned Pinpoint project volume to container's /pinpoint directory.
  2. The second -v mount the host's Maven repository to container's /root/.m2 directory, this will cache all the Maven artifacts instead of downloading them every time from the internet.
  3. This will run the default command mvn install -Dmaven.skip.test=true defined in Dockerfile. If you want to run some other commands, do it like this:
$ docker run -v $(pwd)/pinpoint:/pinpoint:rw -v /Users/$(whoami)/.m2:/root/.m2:rw tangrui/pinpoint-development mvn clean install -Dmaven.skip.test=true

After the first time successfully build, you can change the Pinpoint project location $(pwd)/pinpoint to your own Pinpoint plugin project, and the build should run correctly. For example, you can use the following command to build Pinpoint Plugin Samples:

$ git clone https://github.com/naver/pinpoint-plugin-sample
$ docker run -v $(pwd)/pinpoint-plugin-sample:/pinpoint:rw -v /Users/$(whoami)/.m2:/root/.m2:rw

To run the integration test, you can:

$ docker run -v $(pwd)/pinpoint-plugin-sample:/pinpoint:rw -v /Users/$(whoami)/.m2:/root/.m2:rw mvn integration-test

Credits

This Dockerfile is hardly based on the excellent work of @yous, but has fewer and smaller layers to pull from.

Docker Pull Command
Owner
tangrui
Source Repository

Comments (0)