Browse Source

Remove remaining cloud foundry config and manifests (#2281)

pull/2286/head
Rachael Booth 10 months ago committed by GitHub
parent
commit
66bde20de2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      .cfignore
  2. 21
      config/cloud_foundry/review_manifest.yml
  3. 8
      lib/tasks/cf.rake
  4. 46
      manifest.yml

2
.cfignore

@ -1,2 +0,0 @@
docs/*
spec/*

21
config/cloud_foundry/review_manifest.yml

@ -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

8
lib/tasks/cf.rake

@ -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

46
manifest.yml

@ -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
Loading…
Cancel
Save