Project

General

Profile

« Previous | Next » 

Revision 54082dfd

Added by Dominic Cleal over 9 years ago

Precompile and ship plugin assets in foreman_docker

Depends on Foreman #8925 to support reading manifest.yml from Foreman's own
public/assets/ directory rather than the gem installation root which is
generated at install-time by bundler/rubygems.

View differences:

plugins/ruby-foreman-docker/debian/control
Section: ruby
Priority: extra
Maintainer: Pujan Shah <pujan14@gmail.com>
Build-Depends: debhelper
Build-Depends: debhelper, foreman-compute (>= 1.7.0), foreman-assets (>= 1.7.0)
Standards-Version: 3.9.3
Homepage: https://github.com/theforeman/foreman-docker
Package: ruby-foreman-docker
Architecture: all
Depends: ${misc:Depends}, bundler, foreman-compute (>= 1.7.0)
Depends: ${misc:Depends}, bundler, foreman-compute (>= 1.7.2)
Description: Foreman Docker compute resource
Docker compute resource plugin for Foreman
plugins/ruby-foreman-docker/debian/install
foreman_docker.rb usr/share/foreman/bundler.d
cache usr/share/foreman/vendor
foreman_docker var/lib/foreman/public/assets
plugins/ruby-foreman-docker/debian/rules
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PLUGIN = foreman_docker
build:
cp cache/* /usr/share/foreman/vendor/cache/
cp $(PLUGIN).rb /usr/share/foreman/bundler.d/
cd /usr/share/foreman && ( \
bundle install --local && \
bundle exec rake plugin:assets:precompile[$(PLUGIN)] RAILS_ENV=production \
)
GEM_PATH=$$(cd /usr/share/foreman && bundle show $(PLUGIN)) && \
cp -rp $${GEM_PATH}/public/assets/$(PLUGIN) ./
%:
dh $@

Also available in: Unified diff