-
Notifications
You must be signed in to change notification settings - Fork 0
[do not merge] Memory leak debugging #103
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
base: main
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -8,6 +8,9 @@ x-app: &app | |
| - DATABASE_URL=postgres://root:root@db/geodata-dev?pool=5 | ||
| - RAILS_ENV=${RAILS_ENV:-development} | ||
| - SOLR_URL=http://solr:8983/solr/geodata-test | ||
| - GEODATA_SPATIAL_HEALTHCHECK_URL=https://spatial.lib.berkeley.edu/public/berkeley-status/data.zip | ||
| - GEODATA_GEOSERVER_PUBLIC_HEALTHCHECK_URL=https://geoservices.lib.berkeley.edu/geoserver/wms?service=WMS&request=GetCapabilities | ||
| - GEODATA_GEOSERVER_SECURE_HEALTHCHECK_URL=https://geoservices.lib.berkeley.edu/geoserver/wms?service=WMS&request=GetCapabilities | ||
| volumes: | ||
| - ./:/opt/app:delegated | ||
|
|
||
|
|
@@ -23,6 +26,9 @@ services: | |
| volumes: | ||
| - ./:/opt/app:delegated | ||
| - selenium_downloads:/opt/app/tmp/selenium_downloads | ||
| extra_hosts: | ||
| - geoservices.lib.berkeley.edu:128.32.10.252 | ||
| - spatial.lib.berkeley.edu:128.32.10.252 | ||
|
Comment on lines
+29
to
+31
Member
Author
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. As discussed on our Zoom call, this is a workaround for the fact that Verizon's DNS server was rate limiting my resolution of these domains and eventually returning |
||
|
|
||
| db: | ||
| image: postgres:16 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| # Read Docker secrets into the environment | ||
| Dir['/run/secrets/*'].each do |filepath| | ||
| next unless File.file?(filepath) | ||
|
Member
Author
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. This was so that the app ran in Podman. |
||
|
|
||
| secret = File.read(filepath) | ||
| secret_name = File.basename(filepath) | ||
| ENV[secret_name] ||= secret unless secret.empty? | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,5 +71,5 @@ | |
|
|
||
| # Uncomment if you wish to allow Action Cable access from any origin. | ||
| # config.action_cable.disable_request_forgery_protection = true | ||
| config.hosts << 'app.test' | ||
| config.hosts = [] | ||
|
Member
Author
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. This was necessary to make the |
||
| end | ||
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.
Specifically overrode the secure URL with the public one because any error from the health check kills the memory test early.