-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1231 was not squashed, so this is the squashed commit of that pull request.
- Loading branch information
Showing
16 changed files
with
290 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,7 @@ | |
# Build artifacts | ||
/apps/*/.built | ||
/packaging/*.tar.gz | ||
/build | ||
|
||
lib-cov | ||
*.seed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ondemand for Debian | ||
|
||
Please edit this to provide information specific to | ||
this ondemand Debian package. | ||
|
||
(Automatically generated by debmake Version 4.3.1) | ||
|
||
-- root <> Sun, 20 Jun 2021 23:14:31 +0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ondemand (2.0.10-1) UNRELEASED; urgency=low | ||
|
||
* Initial release. Closes: #nnnn | ||
<nnnn is the bug number of your ITP> | ||
|
||
-- root <> Sun, 20 Jun 2021 23:14:31 +0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Source: ondemand | ||
Section: unknown | ||
Priority: optional | ||
Maintainer: root <> | ||
Build-Depends: debhelper (>=11~), ruby | ||
Standards-Version: 4.1.4 | ||
Homepage: <insert the upstream URL, if relevant> | ||
|
||
Package: ondemand | ||
Architecture: all | ||
Multi-Arch: foreign | ||
Depends: ${misc:Depends}, ${ruby:Depends} | ||
Description: auto-generated package by debmake | ||
This Debian binary package was auto-generated by the | ||
debmake(1) command provided by the debmake package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: ondemand | ||
Source: <url://example.com> | ||
# | ||
# Please double check copyright with the licensecheck(1) command. | ||
|
||
#---------------------------------------------------------------------------- | ||
# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following | ||
# license/copyright files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# You must remove unused comment lines for the released package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/make -f | ||
# You must remove unused comment lines for the released package. | ||
# export DH_VERBOSE = 1 | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_auto_configure: | ||
# nothing to configure | ||
|
||
override_dh_auto_build: | ||
rake build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (quilt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#abort-on-upstream-changes | ||
#unapply-patches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# You must remove unused comment lines for the released package. | ||
version=3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
require_relative 'build_utils' | ||
include BuildUtils | ||
|
||
namespace :build do | ||
|
||
task :verify_build_args, [:platform, :version] do |task, args| | ||
raise "Need to specify platform and version" if args[:platform].nil? || args[:version].nil? | ||
end | ||
|
||
desc "Create buildbox for Open OnDemand" | ||
task :build_box, [:platform, :version] => [:verify_build_args] do |task, args| | ||
platform = args[:platform].to_s | ||
image_tag = "#{platform}-#{args[:version]}" | ||
cmd = build_cmd( | ||
template_file("Dockerfile.#{platform}.erb"), | ||
image_names[:build_box], | ||
image_tag: build_box_tag(args) | ||
) | ||
|
||
sh cmd unless image_exists?(build_box_image(args)) | ||
end | ||
|
||
task :debuild, [:platform, :version] => [:build_box] do |task, args| | ||
dir = build_dir(args) | ||
Rake::Task['package:tar'].invoke(dir) | ||
sh "#{tar} -xzf #{dir}/#{ood_package_tar} -C #{dir}" | ||
|
||
work_dir = "/build/#{versioned_ood_package}" | ||
bundle_ctr = "#{work_dir}/vendor/bundle" | ||
|
||
base_args = ["--rm"] | ||
base_args.concat ["-v", "#{dir}:/build", "-w", "#{work_dir}"] | ||
base_args.concat [ "-e", "VENDOR_BUNDLE_PATH=#{bundle_ctr}", "-e", "VENDOR_BUNDLE=true"] | ||
base_args.concat ["-e", "DEBUILD_DPKG_BUILDPACKAGE_OPTS='-us -uc -I -i'"] | ||
base_args.concat [ build_box_image(args)] | ||
sh "#{container_runtime} run #{base_args.join(' ')} debmake -b':ruby'" | ||
|
||
debuild_args = ["debuild", "-e", "VENDOR_BUNDLE_PATH", "-e", "VENDOR_BUNDLE"] | ||
debuild_args.concat ["--no-lintian"] | ||
sh "#{container_runtime} run #{base_args.join(' ')} #{debuild_args.join(' ')}" | ||
end | ||
|
||
task :nginx, [:platform, :version] => [:build_box] do |task, args| | ||
tar = "#{build_src_dir}/#{nginx_tar}" | ||
sh "wget #{nginx_tar_url} -O #{tar}" unless File.exist?(tar) | ||
end | ||
|
||
task :passenger, [:platform, :version] => [:build_box] do |task, args| | ||
tar = "#{build_src_dir}/#{passenger_tar}" | ||
sh "wget #{passenger_tar_url} -O #{tar}" unless File.exist?(tar) | ||
|
||
# agent tar isn't versioned, so let's do that now. | ||
agent_tar = "#{build_src_dir}/passenger-agent-#{passenger_version}.tar.gz" | ||
sh "wget #{passenger_agent_tar_url} -O #{agent_tar}" unless File.exist?(agent_tar) | ||
|
||
work_dir = "/build" | ||
passenger_host = "#{build_dir(args)}/passenger".tap { |p| sh "mkdir -p #{p}" } | ||
sh "#{tar} --strip-components=1 -xzf #{tar} -C #{passenger_host}" | ||
|
||
base_args = ["--rm", "-v", "#{passenger_host}:#{work_dir}", "-w", "#{work_dir}"] | ||
base_args.concat [ build_box_image(args) ] | ||
makefile_args = base_args + [ "ruby", "#{work_dir}/src/ruby_native_extension/extconf.rb" ] | ||
|
||
sh "#{container_runtime} run #{makefile_args.join(' ')}" | ||
sh "#{container_runtime} run #{base_args.join(' ')} make" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.