-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
ref(geoip): Remove geoipupdate from compose #3490
Conversation
`geoipupdate` is not used by any other service nor it is needed for any service to run. Moreover, it is a one-shot command, causing `docker compose up --wait` to fail when it exits with a non-zero status. This happens when one has not yet set up their credentials and they may choose to never do this. This PR removes `geoipupdate` from the `docker-compose.yml` file and moves the command directly into the geoip related script. One may run this whenever they want to update their GeoIP database. This PR needs an accompanying docs change.
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #3490 +/- ##
==========================================
- Coverage 99.03% 98.06% -0.97%
==========================================
Files 3 3
Lines 207 207
==========================================
- Hits 205 203 -2
- Misses 2 4 +2 ☔ View full report in Codecov by Sentry. |
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.
I don't remember which version since Docker introduce the --wait
flag. But since most people are likely using the updated version of their Docker & Docker Compose, this should be good to go.
@aldy505 I mean, we test (and support) 2.19 and 2.26 which both seem to support the flag and that's kind of all I care about 😅 |
geoipupdate
is not used by any other service nor it is needed for anyservice to run. Moreover, it is a one-shot command, causing
docker compose up --wait
to fail when it exits with a non-zero status.This happens when one has not yet set up their credentials and they may
choose to never do this.
This PR removes
geoipupdate
from thedocker-compose.yml
file andmoves the command directly into the geoip related script. One may run
this whenever they want to update their GeoIP database.
This PR needs an accompanying docs change.
It also has the side-effect of making integration tests slightly faster (due to the initial
docker compose up --wait
), and more reliable as we used to rely on the implicitdocker compose run web
from thesentry_admin
test. This also skewed the test run duration ofsentry_admin
test by including the system startup time there.