<p></p>
<p dir="auto">Thanks, this looks like a great suggestion. I gave it a try, created a new clone of the repo, then added a new devcontainer using <code class="notranslate">bundle exec rails container.</code></p>
<p dir="auto">Initially I was a bit struggling with (Debian, Rails, npm) packages on generated devcontainer. I believe we can probably reuse a lot of the existing Dockerfile and copy it over to .devcontainer/Dockerfile, thereby hopefully addressing these issues. There's a bit of overlap between the "postCreateCommand" in devcontainer.json and the existing Dockerfile, which would need to be resolved.</p>
<p dir="auto">Then I added memcached and mailpit to compose.yaml and adjusted settings.local.yml accordingly. Both were fairly trivial to get up and running. They allow me to run more production-like scenarios without much hassle. Also, unit tests are passing successfully.</p>
<p dir="auto">Overall I see a much improved DX compared to the old Dockerfile.</p>
<details>
<summary>Sample screenshot</summary>
<p dir="auto"><a href="https://github.com/user-attachments/assets/d5769107-8b75-4d51-b355-f095b531ad50">image.png (view on web)</a></p>
</details>
<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/issues/5264#issuecomment-2423746669">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJCGE4XNXX3K3LXQYLZ4IX2ZAVCNFSM6AAAAABQBU2O3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRTG42DMNRWHE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLNQY4CX7JM2VOR5XLZ4IX2ZA5CNFSM6AAAAABQBU2O3KWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUQO5YG2.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/issues/5264/2423746669</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/issues/5264#issuecomment-2423746669",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5264#issuecomment-2423746669",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>