Skip to content

Latest commit

 

History

History
 
 

README.md

Wavefront Proxy Packaging

Tools

  • Install docker.
  • Install Java 7+/Maven.

Methodology

Build and run the docker container for building.

### Outside docker container
docker pull wavefronthq/proxy-builder
docker run -it wavefronthq/proxy-builder bash
# Copy JRE into docker container for building WF proxy
docker cp <my_jre_directory> my_container:/opt/jre
# Copy a WF proxy that you build into the docker container
mvn package -pl proxy -am
docker cp proxy/target/proxy-3.99-SNAPSHOT-uber.jar my_container:/opt/wavefront-push-agent.jar

### Inside docker container
cd /opt/wavefront-java-repo/pkg
git pull
./stage.sh /opt/jre /opt/commons-daemon /opt/wavefront-push-agent.jar
./build.sh deb 3.99 4

# Outside docker container
docker cp my_container:/root/java/pkg/wavefront-proxy_3.99-4_amd64.deb .

This will build the agent from head and package it into a deb or an rpm. The after-install.sh script will download and install Zulu 8.13.0.5 0f21d10ca4f1 JRE by default, so to bundle the package with a JRE of your choice instead, run the following commands inside the docker container right before build.sh:

sed -ri 's,^curl(.*),#curl\1,g' /opt/wavefront-java-repo/pkg/after-install.sh
cp -r /opt/jre /opt/wavefront-java-repo/pkg/build/opt/wavefront/wavefront-proxy/proxy-jre