From e9fc91ada77bfe1ea0a4c30fef082a3c90400d61 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 6 Jun 2023 10:37:15 +0100 Subject: [PATCH] Skip attempting `maxminddb:get` during build (#716) 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 | 1 - 1 file changed, 1 deletion(-) diff --git a/image/base/release.Dockerfile b/image/base/release.Dockerfile index b5f4822..7a7aba8 100644 --- a/image/base/release.Dockerfile +++ b/image/base/release.Dockerfile @@ -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 {} + -- 2.25.1