<p><b>@jalessio</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2409#discussion_r386183993">Dockerfile</a>:</p>
<pre style='color:#555'>> + ruby-dev \
+ yarn && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists/*
+
+# Setup app location
+RUN mkdir -p /app
+WORKDIR /app
+
+# Install Ruby packages
+ADD Gemfile Gemfile.lock /app/
+RUN bundle install
+
+# Install NodeJS packages
+ADD package.json yarn.lock /app/
+RUN yarn
</pre>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/gravitystorm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gravitystorm">@gravitystorm</a> I realize you've been consistently asking for using the <code>bundle exec</code> form of commands for consistency <em>(which I appreciate)</em>, but I'll try to convince you of this exception...</p>
<p>I toiled with getting this to work via <code>bundle exec rake db:migrate</code>, but I couldn't get it to run without adding a big chunk of the repository into the image during build. It ended up adding a bunch of extra files to the image <em>just</em> so that I could run <code>bundle exec rake db:migrate</code> instead <code>yarn</code> directly. I believe the result is the same in the end so I went with the simpler option.</p>
<p>That said, perhaps someone else could compile a small list of files necessary to successfully run <code>rake</code> commands during the image build?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2409?email_source=notifications&email_token=AAK2OLI7JKIEECYSTZUZ6L3RFMSFTA5CNFSM4JDURRXKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCXPPSRY#pullrequestreview-366934343">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNC6U5U7OLP5GNRKIDRFMSFTANCNFSM4JDURRXA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLNY3LXMNCN3NMFC74TRFMSFTA5CNFSM4JDURRXKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCXPPSRY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2409?email_source=notifications\u0026email_token=AAK2OLI7JKIEECYSTZUZ6L3RFMSFTA5CNFSM4JDURRXKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCXPPSRY#pullrequestreview-366934343",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2409?email_source=notifications\u0026email_token=AAK2OLI7JKIEECYSTZUZ6L3RFMSFTA5CNFSM4JDURRXKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCXPPSRY#pullrequestreview-366934343",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>