-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform provisioning for Jupiter into Azure Cloud #2733
base: main
Are you sure you want to change the base?
Changes from all commits
820961d
9a03189
012ace2
294c8c8
740eaeb
112ebbc
5d34020
158317e
c970af3
be6d10d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#Rails application env variables | ||
RAILS_ENV=uat | ||
DATABASE_URL=postgresql://jupiter:mysecretpassword@postgres:5432/ | ||
FCREPO_URL=http://fcrepo:8080/fcrepo/rest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fedora was removed long time ago...updated all references I could find here |
||
SOLR_URL=http://solr:8983/solr/jupiter-uat | ||
REDIS_URL=redis://redis/1 | ||
SECRET_KEY_BASE=33d83bc35b707a1f70ac9475cdaabd4224fca0d3edc07e0ce6db13515d1c1e3aaf4c3b8bf580d9ea6198ec90bae2005ca807fa46a9aee5906bd64be99cc2e065 | ||
|
@@ -10,16 +9,13 @@ SAML_CERTIFICATE= | |
ROLLBAR_TOKEN= | ||
GOOGLE_ANALYTICS_TOKEN= | ||
RAILS_LOG_TO_STDOUT=true | ||
# Comma delimited string of rack attack safelisted IPs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rack attack gem was removed long time ago |
||
RACK_ATTACK_SAFELISTED_IPS= | ||
TLD_LENGTH=3 | ||
GOOGLE_CLIENT_ID= | ||
GOOGLE_CLIENT_SECRET= | ||
GOOGLE_DEVELOPER_KEY= | ||
ERA_HOST=era.uat.library.ualberta.ca | ||
DIGITIZATION_HOST=digitalcollections.uat.library.ualberta.ca | ||
|
||
|
||
# Postgres environment variables | ||
PGDATA=/var/lib/postgresql/data/pgdata | ||
POSTGRES_PASSWORD=mysecretpassword | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,10 @@ gem 'google-api-client', | |
gem 'builder_deferred_tagging', github: 'ualbertalib/builder_deferred_tagging', tag: 'v0.01' | ||
gem 'oaisys', github: 'ualbertalib/oaisys', tag: 'v1.0.3' | ||
|
||
group :uat do | ||
gem 'azure-storage-blob', require: false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Required for Activestorage to use Azure blob storage as a bucket |
||
end | ||
|
||
# Seeds | ||
group :development, :test, :uat do | ||
gem 'faker', require: false | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
|
||
**Requirements:** | ||
|
||
- **Ruby** 2.5+ | ||
- **Ruby** 2.6+ | ||
- **PostgreSQL** | ||
- **Redis** | ||
- **Solr** | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
# the maximum value specified for Puma. Default is set to 5 threads for minimum | ||
# and maximum; this matches the default thread size of Active Record. | ||
# | ||
max_threads_count = ENV.fetch('PUMA_MAX_THREADS', 5) | ||
min_threads_count = ENV.fetch('PUMA_MIN_THREADS') { max_threads_count } | ||
max_threads_count = ENV.fetch('RAILS_MAX_THREADS', 5) | ||
min_threads_count = ENV.fetch('RAILS_MIN_THREADS') { max_threads_count } | ||
threads min_threads_count, max_threads_count | ||
|
||
# Specifies the `worker_timeout` threshold that Puma will use to wait before | ||
|
@@ -39,14 +39,5 @@ | |
# | ||
# preload_app! | ||
|
||
if ENV['RAILS_ENV'] == 'uat' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need to fork puma workers |
||
workers ENV.fetch('WEB_CONCURRENCY', 3) | ||
preload_app! | ||
on_worker_boot do | ||
ActiveSupport.on_load(:active_record) do | ||
ActiveRecord::Base.establish_connection | ||
end | ||
end | ||
end | ||
# Allow puma to be restarted by `rails restart` command. | ||
# Allow puma to be restarted by `bin/rails restart` command. | ||
plugin :tmp_restart |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Local .terraform directories | ||
**/.terraform/* | ||
|
||
# .tfstate files | ||
*.tfstate | ||
*.tfstate.* | ||
|
||
# Crash log files | ||
crash.log | ||
crash.*.log | ||
# Local .terraform directories | ||
**/.terraform/* | ||
|
||
# .tfstate files | ||
*.tfstate | ||
*.tfstate.* | ||
|
||
# Crash log files | ||
crash.log | ||
crash.*.log | ||
|
||
# Exclude all .tfvars files, which are likely to contain sentitive data, such as | ||
# password, private keys, and other secrets. These should not be part of version | ||
# control as they are data points which are potentially sensitive and subject | ||
# to change depending on the environment. | ||
# | ||
*.tfvars | ||
|
||
# Ignore override files as they are usually used to override resources locally and so | ||
# are not checked in | ||
override.tf | ||
override.tf.json | ||
*_override.tf | ||
*_override.tf.json | ||
|
||
# Include override files you do wish to add to version control using negated pattern | ||
# | ||
# !example_override.tf | ||
|
||
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan | ||
# example: *tfplan* | ||
|
||
# Ignore CLI configuration files | ||
.terraformrc | ||
terraform.rc | ||
|
||
kubeconfig |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably shouldn't check all this stuff into our docker images 😆. This saves a good 100 MB or so from my images I was building