Skip to content

Instantly share code, notes, and snippets.

@Magisus
Last active September 24, 2020 17:33
Show Gist options
  • Save Magisus/d209c31ccf8cf33ac11881d9bd4f035e to your computer and use it in GitHub Desktop.
Save Magisus/d209c31ccf8cf33ac11881d9bd4f035e to your computer and use it in GitHub Desktop.
Building a pe-puppetserver uberjar with a dev dependency
On branches for Marshall and beyond*:
1. Make changes to dependent project (no commit necessary)
2. Run `lein clean && lein install` in that project dir, will put a SNAPSHOT version in your local maven repo
3. Update the entry for the dep in the `project.clj` file of pe-puppet-server-extenions to point to that installed SNAPSHOT version
4. Run `lein clean && lein uberjar` in pe-puppet-server-extensions. This creates a new `puppet-server-release.jar` in `target`
5. Copy the jar to your PE box:
`scp target/puppet-server-release.jar root@MY-VM.delivery.puppetlabs.net:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar`
6. On that box, restart pe-puppetserver
* On the Irving branch, pe-puppet-server-extensions and pe-puppetserver are still two separate projects,
so the dep update and ezbake build need to happen in pe-puppetserver instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment