<h3 dir="auto">Description</h3>
<p dir="auto">Pull the Dockerfile Ruby version in to an ARG so we can override it. This will make it easier to run Ruby 3.3 and 3.4, <a href="https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md#prerequisites">which we also support</a>. Now building the Dockerfile with a different Ruby version can be done like this:</p>
<pre class="notranslate"><code class="notranslate">docker-compose build --build-arg RUBY_VERSION=3.3
</code></pre>
<h3 dir="auto">How has this been tested?</h3>
<p dir="auto">The tests pass and I can run the app locally. I was able to confirm the correct Ruby version is still being pulled after the change by looking at the Docker build logs:</p>
<pre class="notranslate"><code class="notranslate"> => [web 1/10] FROM docker.io/library/ruby:3.2-bookworm@sha256:4bcc61f192db4d9f72c87998fa77f97deaaeb0c1021951632f4cb986b3c779de 33.8s
</code></pre>
<p dir="auto">And this is with the RUBY_VERSION set by the command line:</p>
<pre class="notranslate"><code class="notranslate">=> [web 1/10] FROM docker.io/library/ruby:3.3-bookworm@sha256:49ee09d4811028286bb9510599999622fb7e6264190ebe645e17b3b078d633a6 3.7s
</code></pre>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/6354'>https://github.com/openstreetmap/openstreetmap-website/pull/6354</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6354/commits/f0552c02033ba96039f775390894c3eddd953223" class="commit-link">f0552c0</a> Pull docker ruby version into arg</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6354/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6354/files#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557">Dockerfile</a>
(3)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6354.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6354.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6354.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6354.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6354">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMOAPOU2GYR5OEOM7D3PO46VAVCNFSM6AAAAACEZOWZD2VHI2DSMVQWIX3LMV43ASLTON2WKOZTGM2TGNZVGM3TEMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLL7PHDLNSKHRMXP4EL3PO46VA5CNFSM6AAAAACEZOWZD2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHMPZRYPA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6354</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6354",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6354",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>