lucidsoftware / piezo

Piezo is a set of tools for operating a quartz scheduling cluster.
Apache License 2.0
53 stars 28 forks source link

Build improvments #32

Closed pauldraper closed 7 years ago

pauldraper commented 9 years ago

Upgrade SBT to 0.13.9

Includes fix for https://github.com/sbt/sbt/issues/1828.

Admin build

Use sbt-native-packager to create Debian package that installs the admin as an upstart job.

sbt debian:packageBin
sudo dpkg -i target/piezo-admin*.deb

It can be configured in /etc/piezo-admin/conf.

JAVA_OPTS+=-Dconfig.file=/etc/piezo-admin/application-overrides.conf
JAVA_OPTS+=-Dhttp.port=80

(The .deb can be deployed to Sonatype, just like the worker, but an apt repo requires Packages.gz, and that is harder to produce. So I didn't touch anything here.)

Worker build

I removed dependencies:

Instead, a full runnable example with these dependencies is provided by worker-example.

pauldraper commented 9 years ago

(@disaacson, I noticed that you got the .deb build issues resolved. That make these changes less of a priority.)

lucidchart commented 9 years ago

Yeah, thanks for helping me though.

On Mon, Aug 17, 2015 at 10:18 AM, Paul Draper notifications@github.com wrote:

(@disaacson https://github.com/disaacson, I noticed that you got the .deb build issues resolved. That make these changes less of a priority.)

— Reply to this email directly or view it on GitHub https://github.com/lucidsoftware/piezo/pull/32#issuecomment-131877475.

pauldraper commented 9 years ago

Well, then I may revisit this later.

More generally, there are some changes here I would like to see in Lucid's internal services: files in standard locations, separate configuration, etc.