<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Docker setup is not working]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">Here is my use-case: I want to create a module for MM and I want to have MM running in sever mode as a docker on my PC to create-n-debug module locally first and then deploy it to Raspberry.</p>
<p dir="auto">Ok, current docker instructions from github doesn’t work, but np, Dockerfile is ok. So I pulled “master”, fixed config (just whitelisted all IPs) and created docker image locally based on it (<em>docker image build &lt; path to local repo &gt;</em>). Then I create container from it, go to web-server’s address and see empty black screen. Starting to debug and see that few HTTP requests end with 404. Here they are:</p>
<ul>
<li>“NetworkError: 404 Not Found - <a href="http://192.168.99.100/vendor/node_modules/moment/min/moment-with-locales.js" target="_blank" rel="noopener noreferrer nofollow ugc">http://192.168.99.100/vendor/node_modules/moment/min/moment-with-locales.js</a>”</li>
<li>“NetworkError: 404 Not Found - <a href="http://192.168.99.100/vendor/node_modules/moment-timezone/builds/moment-timezone-with-data.js" target="_blank" rel="noopener noreferrer nofollow ugc">http://192.168.99.100/vendor/node_modules/moment-timezone/builds/moment-timezone-with-data.js</a>”</li>
<li>“NetworkError: 404 Not Found - <a href="http://192.168.99.100/vendor/node_modules/font-awesome/css/font-awesome.min.css" target="_blank" rel="noopener noreferrer nofollow ugc">http://192.168.99.100/vendor/node_modules/font-awesome/css/font-awesome.min.css</a>”</li>
<li>“NetworkError: 404 Not Found - <a href="http://192.168.99.100/vendor/node_modules/weathericons/css/weather-icons.css" target="_blank" rel="noopener noreferrer nofollow ugc">http://192.168.99.100/vendor/node_modules/weathericons/css/weather-icons.css</a>”</li>
<li>clock.js (line 49, column 3) ReferenceError: moment is not defined</li>
<li>clock.js (line 77, column 7) ReferenceError: moment is not defined</li>
</ul>
<p dir="auto">Ok, what I did is logged into container and ls-ed to /vendor dir and realize there are really no such files. I’ve searched through gitlab repo and realized there are no such files too.</p>
<p dir="auto">I’ve looked through issues and realize that pull request <a href="https://github.com/MichMich/MagicMirror/pull/846" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror/pull/846</a> is not going to fix issue that I’m experiencing. Moreover dockerfile from this PR is not building on my PC.</p>
<p dir="auto">I’m not an expert in NodeJs but I assume list of possible problems are following:</p>
<ol>
<li>I’m missing something :)</li>
<li>Docker installation scripts doesn’t contain some instructions that exists in Raspberry installation scripts and nobody really using docker so I’m the first to see this issue</li>
<li>Those files are somehow dynamic and appear at runtime (or some mod_rewrite works), but I don’t see why they are not work and see no rules for those files to proceed dynamically (search through code by “moment” doesn’t show anything that rings the bell for me).</li>
</ol>
<p dir="auto">My setup:<br />
Windows 7 64-bit<br />
Dockertools Server Version: 17.04.0-ce</p>
<p dir="auto">Appreciate any hints how this can be solved.<br />
Ready to contribute a fix (to code or documentation) if it will be needed</p>
]]></description><link>https://forum.magicmirror.builders/topic/2333/docker-setup-is-not-working</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 05:00:47 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/2333.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 16 Apr 2017 16:23:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Docker setup is not working on Thu, 20 Apr 2017 21:20:10 GMT]]></title><description><![CDATA[<p dir="auto">I added the <code>--unsafe-perm</code> to the npm install process in the Dockerfile. (<a href="https://github.com/bastilimbach/docker-MagicMirror/commit/3a5dbc4f6352d726b4b00612b96add4ff8a5d3d3" target="_blank" rel="noopener noreferrer nofollow ugc">3a5dbc4</a>) This should fix the issues 👍</p>
]]></description><link>https://forum.magicmirror.builders/post/20046</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/20046</guid><dc:creator><![CDATA[bastilimbach]]></dc:creator><pubDate>Thu, 20 Apr 2017 21:20:10 GMT</pubDate></item><item><title><![CDATA[Reply to Docker setup is not working on Thu, 20 Apr 2017 17:31:26 GMT]]></title><description><![CDATA[<p dir="auto">The docker setup is outsourced to <a href="https://github.com/bastilimbach/docker-MagicMirror" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/bastilimbach/docker-MagicMirror</a> and I already posted an issue for the black screen problem there: <a href="https://github.com/bastilimbach/docker-MagicMirror/issues/2" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/bastilimbach/docker-MagicMirror/issues/2</a></p>
]]></description><link>https://forum.magicmirror.builders/post/20028</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/20028</guid><dc:creator><![CDATA[karsten13]]></dc:creator><pubDate>Thu, 20 Apr 2017 17:31:26 GMT</pubDate></item><item><title><![CDATA[Reply to Docker setup is not working on Thu, 20 Apr 2017 13:30:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michmich" aria-label="Profile: MichMich">@<bdi>MichMich</bdi></a> should this be submitted as an issue to GitHub?</p>
]]></description><link>https://forum.magicmirror.builders/post/20017</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/20017</guid><dc:creator><![CDATA[z0diak]]></dc:creator><pubDate>Thu, 20 Apr 2017 13:30:35 GMT</pubDate></item><item><title><![CDATA[Reply to Docker setup is not working on Thu, 20 Apr 2017 12:51:37 GMT]]></title><description><![CDATA[<p dir="auto">Initiated container, ran “npm install” and here are results:</p>
<pre><code># npm install
npm info it worked if it ends with ok
npm info using npm@4.2.0
npm info using node@v7.9.0
npm info lifecycle magicmirror@2.1.1~preinstall: magicmirror@2.1.1
npm info linkStuff magicmirror@2.1.1
npm info lifecycle magicmirror@2.1.1~install: magicmirror@2.1.1
npm WARN lifecycle magicmirror@2.1.1~install: cannot run in wd %s %s (wd=%s) mag
icmirror@2.1.1 cd vendor &amp;&amp; npm install /opt/magic_mirror
npm info lifecycle magicmirror@2.1.1~postinstall: magicmirror@2.1.1
npm WARN lifecycle magicmirror@2.1.1~postinstall: cannot run in wd %s %s (wd=%s)
 magicmirror@2.1.1 sh installers/postinstall/postinstall.sh /opt/magic_mirror
npm info ok
# ls vendor
package.json  vendor.js
</code></pre>
<p dir="auto">Unless I use --unsage-perm it just doesn’t work. Thanks to you and <a class="plugin-mentions-user plugin-mentions-a" href="/user/karsten13" aria-label="Profile: karsten13">@<bdi>karsten13</bdi></a></p>
]]></description><link>https://forum.magicmirror.builders/post/20014</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/20014</guid><dc:creator><![CDATA[z0diak]]></dc:creator><pubDate>Thu, 20 Apr 2017 12:51:37 GMT</pubDate></item><item><title><![CDATA[Reply to Docker setup is not working on Thu, 20 Apr 2017 11:57:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/z0diak" aria-label="Profile: z0diak">@<bdi>z0diak</bdi></a> those files have to be installed with <code>npm install</code> in the vendor directory or run <code>npm install</code> in MagicMirror directory which automatically installs the vendor as well.</p>
]]></description><link>https://forum.magicmirror.builders/post/20006</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/20006</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Thu, 20 Apr 2017 11:57:35 GMT</pubDate></item><item><title><![CDATA[Reply to Docker setup is not working on Tue, 18 Apr 2017 21:49:04 GMT]]></title><description><![CDATA[<p dir="auto">replacing “npm install” with “npm install --unsafe-perm” solved my blackscreen problem.</p>
]]></description><link>https://forum.magicmirror.builders/post/19917</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/19917</guid><dc:creator><![CDATA[karsten13]]></dc:creator><pubDate>Tue, 18 Apr 2017 21:49:04 GMT</pubDate></item></channel></rss>