Skip to content
Snippets Groups Projects
Commit d30e71936dce authored by Georges Racinet's avatar Georges Racinet :squid:
Browse files

Licenses: ensuring parent dir each time a JSON file is copied in there

Something must remove it early in the build, as it is also created before
calling `build:project`. Of course the problem depends on the ordering of
steps.

Putting the `mkdir` in all these configurations is heavy handed and can
lead to more conflicts, but the cost of random failures is just too high.
parent 11144d030530
No related branches found
No related tags found
No related merge requests found
......@@ -51,5 +51,7 @@
copy 'alertmanager', "#{install_dir}/embedded/bin/"
command "license_finder report --enabled-package-managers godep gomodules --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=license.json"
# According to https://rubydoc.info/github/chef/omnibus/Omnibus/Builder#mkdir-instance_method this is supposed to be the equivalent of /usr/bin/mkdir -p
mkdir "#{install_dir}/licenses"
copy "license.json", "#{install_dir}/licenses/alertmanager.json"
end
......@@ -41,5 +41,7 @@
copy 'bin/consul', "#{install_dir}/embedded/bin/"
command "license_finder report --enabled-package-managers godep gomodules --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=license.json"
# According to https://rubydoc.info/github/chef/omnibus/Omnibus/Builder#mkdir-instance_method this is supposed to be the equivalent of /usr/bin/mkdir -p
mkdir "#{install_dir}/licenses"
copy "license.json", "#{install_dir}/licenses/consul.json"
end
......@@ -40,5 +40,7 @@
copy 'docker-distribution-pruner', "#{install_dir}/embedded/bin/"
command "license_finder report --enabled-package-managers godep gomodules --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=license.json"
# According to https://rubydoc.info/github/chef/omnibus/Omnibus/Builder#mkdir-instance_method this is supposed to be the equivalent of /usr/bin/mkdir -p
mkdir "#{install_dir}/licenses"
copy "license.json", "#{install_dir}/licenses/docker-distribution-pruner.json"
end
......@@ -56,5 +56,7 @@
make "install PREFIX=#{install_dir}/embedded", env: env
command "license_finder report --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=licenses.json"
# According to https://rubydoc.info/github/chef/omnibus/Omnibus/Builder#mkdir-instance_method this is supposed to be the equivalent of /usr/bin/mkdir -p
mkdir "#{install_dir}/licenses"
copy "licenses.json", "#{install_dir}/licenses/gitaly.json"
end
......@@ -34,5 +34,7 @@
make "install PREFIX=#{install_dir}/embedded", env: env
command "license_finder report --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=license.json"
# According to https://rubydoc.info/github/chef/omnibus/Omnibus/Builder#mkdir-instance_method this is supposed to be the equivalent of /usr/bin/mkdir -p
mkdir "#{install_dir}/licenses"
copy "license.json", "#{install_dir}/licenses/gitlab-elasticsearch-indexer.json"
end
......@@ -36,5 +36,7 @@
move 'build/kas', "#{install_dir}/embedded/bin/gitlab-kas"
command "license_finder report --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=license.json"
# According to https://rubydoc.info/github/chef/omnibus/Omnibus/Builder#mkdir-instance_method this is supposed to be the equivalent of /usr/bin/mkdir -p
mkdir "#{install_dir}/licenses"
copy "license.json", "#{install_dir}/licenses/gitlab-kas.json"
end
......@@ -49,5 +49,7 @@
move 'gitlab-pages', "#{install_dir}/embedded/bin/gitlab-pages"
command "license_finder report --enabled-package-managers godep gomodules --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=license.json"
# According to https://rubydoc.info/github/chef/omnibus/Omnibus/Builder#mkdir-instance_method this is supposed to be the equivalent of /usr/bin/mkdir -p
mkdir "#{install_dir}/licenses"
copy "license.json", "#{install_dir}/licenses/gitlab-pages.json"
end
......@@ -48,5 +48,7 @@
copy 'node_exporter', "#{install_dir}/embedded/bin/"
command "license_finder report --enabled-package-managers godep gomodules --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=license.json"
# According to https://rubydoc.info/github/chef/omnibus/Omnibus/Builder#mkdir-instance_method this is supposed to be the equivalent of /usr/bin/mkdir -p
mkdir "#{install_dir}/licenses"
copy "license.json", "#{install_dir}/licenses/node-exporter.json"
end
......@@ -47,5 +47,7 @@
copy 'pgbouncer_exporter', "#{install_dir}/embedded/bin/"
command "license_finder report --enabled-package-managers godep gomodules --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=license.json"
# According to https://rubydoc.info/github/chef/omnibus/Omnibus/Builder#mkdir-instance_method this is supposed to be the equivalent of /usr/bin/mkdir -p
mkdir "#{install_dir}/licenses"
copy "license.json", "#{install_dir}/licenses/pgbouncer-exporter.json"
end
......@@ -45,5 +45,7 @@
copy 'postgres_exporter', "#{install_dir}/embedded/bin/"
command "license_finder report --enabled-package-managers godep gomodules --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=license.json"
# According to https://rubydoc.info/github/chef/omnibus/Omnibus/Builder#mkdir-instance_method this is supposed to be the equivalent of /usr/bin/mkdir -p
mkdir "#{install_dir}/licenses"
copy "license.json", "#{install_dir}/licenses/postgres-exporter.json"
end
......@@ -51,5 +51,7 @@
copy 'prometheus', "#{install_dir}/embedded/bin/prometheus"
command "license_finder report --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=license.json"
# According to https://rubydoc.info/github/chef/omnibus/Omnibus/Builder#mkdir-instance_method this is supposed to be the equivalent of /usr/bin/mkdir -p
mkdir "#{install_dir}/licenses"
copy "license.json", "#{install_dir}/licenses/prometheus.json"
end
......@@ -51,5 +51,7 @@
copy 'redis_exporter', "#{install_dir}/embedded/bin/"
command "license_finder report --enabled-package-managers godep gomodules --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=license.json"
# According to https://rubydoc.info/github/chef/omnibus/Omnibus/Builder#mkdir-instance_method this is supposed to be the equivalent of /usr/bin/mkdir -p
mkdir "#{install_dir}/licenses"
copy "license.json", "#{install_dir}/licenses/redis-exporter.json"
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment