Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/aptmac/jmc-agent-rpm
- Owner: aptmac
- Created: 2021-12-01T21:59:37.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-07T15:11:18.000Z (almost 3 years ago)
- Last Synced: 2023-02-28T09:11:30.253Z (over 1 year ago)
- Language: Shell
- Homepage: https://copr.fedorainfracloud.org/coprs/almac/jmc-agent/
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`