Skip attempting `maxminddb:get` during build (#716)
authorDavid Taylor <david@taylorhq.com>
Tue, 6 Jun 2023 09:37:15 +0000 (10:37 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Jun 2023 09:37:15 +0000 (10:37 +0100)
Fetching the maxmind database requires a license key, which we do not include during our base image build. This rake task has been failing with an error for some time

```
MaxMind IP database updates require a license
```

Following https://github.com/discourse/discourse/commit/0330f51d75b34c41666266d5fee4174b136be728, the task now hard-fails and breaks the build.

image/base/release.Dockerfile

index b5f48222dce4a6b9604823f82b32c56295414878..7a7aba82358cbdd5b8773bfb0de06dfd8baff2bd 100644 (file)
@@ -10,5 +10,4 @@ RUN cd /var/www/discourse &&\
     sudo -u discourse bundle install --jobs 4 &&\
     sudo -u discourse yarn install --frozen-lockfile &&\
     sudo -u discourse yarn cache clean &&\
-    bundle exec rake maxminddb:get &&\
     find /var/www/discourse/vendor/bundle -name tmp -type d -exec rm -rf {} +