Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aptmac/jmc-agent-rpm

Repository for RPM packaging of the JMC Agent
https://github.com/aptmac/jmc-agent-rpm

Last synced: 26 days ago
JSON representation

Repository for RPM packaging of the JMC Agent

Awesome Lists containing this project

README

        

# JMC Agent Packaging

copr repository available at: https://copr.fedorainfracloud.org/coprs/almac/jmc-agent/

## Using the contents of this repo

### Fetch the JMC sources
`$ bash fetch-sources.sh`

### Building the source rpm
`$ fedpkg srpm`

optionally, can create a Fedora version-specific srpm:
`$ fedpkg --release f34 srpm` would create a srpm for Fedora 34

### Building the package locally (mock)
If I'm looking to create a mock build for Fedora 34 using the first iteration of this package, my command might look something like:
`$ mock -r fedora-34-x86_64 ./jmc-agent-1.0.1-1.fc34.src.rpm`

optionally, can add `--postinstall` to install the resulting `.rpm` once it is built.

Note: the agent uses `maven-shade-plugin` as a build requirement, which is available in F34 and onward.

### Building the package in copr
First, set up a copr project for your builds. (https://copr.fedorainfracloud.org/)

In your new project, create a build by navigating to the "Builds" page, and select the button "New Build". On this page you can select "Upload" as the source type, and select the source rpm built two steps ago. Select the chroots of interest and build it.

### Installing from copr

Enable the copr repo:
`$ dnf copr enable almac/jmc-agent`

Install the agent:
`$ sudo dnf install jmc-agent`

You can find the installed agent jar at: `/usr/share/java/jmc-agent/agent.jar`