From 66bde20de263b16fe4e57f018b308f9edc274dde Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Fri, 1 Mar 2024 11:47:57 +0000 Subject: [PATCH] Remove remaining cloud foundry config and manifests (#2281) --- .cfignore | 2 -- config/cloud_foundry/review_manifest.yml | 21 ----------- lib/tasks/cf.rake | 8 ----- manifest.yml | 46 ------------------------ 4 files changed, 77 deletions(-) delete mode 100644 .cfignore delete mode 100644 config/cloud_foundry/review_manifest.yml delete mode 100644 lib/tasks/cf.rake delete mode 100644 manifest.yml diff --git a/.cfignore b/.cfignore deleted file mode 100644 index 9aae254ab..000000000 --- a/.cfignore +++ /dev/null @@ -1,2 +0,0 @@ -docs/* -spec/* diff --git a/config/cloud_foundry/review_manifest.yml b/config/cloud_foundry/review_manifest.yml deleted file mode 100644 index a0f1afb4e..000000000 --- a/config/cloud_foundry/review_manifest.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -defaults: &defaults - buildpacks: - - https://github.com/cloudfoundry/ruby-buildpack.git - processes: - - type: web - command: bundle exec rake cf:on_first_instance db:migrate db:seed && bin/rails server - instances: 1 - memory: 1G - - type: worker - command: bundle exec sidekiq -t 3 - health-check-type: process - instances: 1 - health-check-type: http - health-check-http-endpoint: /health - -applications: - - name: dluhc-core-review - <<: *defaults - env: - RAILS_ENV: review diff --git a/lib/tasks/cf.rake b/lib/tasks/cf.rake deleted file mode 100644 index 111ea7395..000000000 --- a/lib/tasks/cf.rake +++ /dev/null @@ -1,8 +0,0 @@ -namespace :cf do - desc "Only run on the first application instance" - task on_first_instance: :environment do - # We expect this information to be always available or break otherwise - instance_index = JSON.parse(ENV["VCAP_APPLICATION"])["instance_index"] - exit(0) unless instance_index.zero? - end -end diff --git a/manifest.yml b/manifest.yml deleted file mode 100644 index 86793319f..000000000 --- a/manifest.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -defaults: &defaults - buildpacks: - - https://github.com/cloudfoundry/ruby-buildpack.git - processes: - - type: web - command: bundle exec rake cf:on_first_instance db:migrate && bin/rails server - instances: 2 - memory: 1G - - type: worker - command: bundle exec sidekiq -t 3 - disk_quota: 4G - health-check-type: process - instances: 2 - memory: 8G - health-check-type: http - health-check-http-endpoint: /health - -applications: - - name: dluhc-core-staging - <<: *defaults - env: - RAILS_ENV: staging - services: - - dluhc-core-staging-postgres - - dluhc-core-staging-redis - - - name: dluhc-core-production - <<: *defaults - processes: - - type: web - command: bundle exec rake cf:on_first_instance db:migrate && bin/rails server - instances: 4 - memory: 1G - - type: worker - command: bundle exec sidekiq -t 3 - disk_quota: 4G - health-check-type: process - instances: 2 - memory: 8G - env: - RAILS_ENV: production - host: submit-social-housing-lettings-sales-data - services: - - dluhc-core-production-postgres - - dluhc-core-production-redis