<?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[Mabbox-gl failed to work in docker container on AWS EC2]]></title><description><![CDATA[<p>Hi There, we have a project which have following jsreport version:</p>
<pre><code>&quot;jsreport&quot;: &quot;^2.11.0&quot;,
&quot;jsreport-chrome-pdf&quot;: &quot;=1.10.0&quot;,
</code></pre>
<p>Which have same issue as the one reported here: <a href="https://github.com/jsreport/jsreport/issues/813" rel="nofollow">https://github.com/jsreport/jsreport/issues/813</a><br />
What we have done here is using an override for the puppeteer:</p>
<pre><code>&quot;overrides&quot;: {
    &quot;jsreport&quot;: {
        &quot;puppeteer&quot;: &quot;=22.0.0&quot;
    }
}
</code></pre>
<p>This approach works fine locally, but we decide to deploy this project to an docker container and hosted in AWS EC2 instance and the pdf generating for a chart using mapbox-gl now failing.</p>
<p>we tried to build docker image and test it locally and using following config:</p>
<pre><code>'chrome-pdf': {
    'launchOptions': {
         'defaultViewport': null,
         'args': ['--no-sandbox', '--window-size=1800,1350', '--use-angle=swiftshader','--use-gl=angle','--in-process-gpu']
     },
     'strategy': 'chrome-pool',
    'allowLocalFilesAccess': true,
    'numberOfWorkers': 3
}
</code></pre>
<p>This makes it working in local docker container, but still not working in the EC2. Do you have any clue about this? Thanks in advanc!</p>
]]></description><link>https://forum.jsreport.net/topic/3190/mabbox-gl-failed-to-work-in-docker-container-on-aws-ec2</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 15:17:59 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/3190.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 May 2024 02:14:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mabbox-gl failed to work in docker container on AWS EC2 on Invalid Date]]></title><description><![CDATA[<p>Hi There, we have a project which have following jsreport version:</p>
<pre><code>&quot;jsreport&quot;: &quot;^2.11.0&quot;,
&quot;jsreport-chrome-pdf&quot;: &quot;=1.10.0&quot;,
</code></pre>
<p>Which have same issue as the one reported here: <a href="https://github.com/jsreport/jsreport/issues/813" rel="nofollow">https://github.com/jsreport/jsreport/issues/813</a><br />
What we have done here is using an override for the puppeteer:</p>
<pre><code>&quot;overrides&quot;: {
    &quot;jsreport&quot;: {
        &quot;puppeteer&quot;: &quot;=22.0.0&quot;
    }
}
</code></pre>
<p>This approach works fine locally, but we decide to deploy this project to an docker container and hosted in AWS EC2 instance and the pdf generating for a chart using mapbox-gl now failing.</p>
<p>we tried to build docker image and test it locally and using following config:</p>
<pre><code>'chrome-pdf': {
    'launchOptions': {
         'defaultViewport': null,
         'args': ['--no-sandbox', '--window-size=1800,1350', '--use-angle=swiftshader','--use-gl=angle','--in-process-gpu']
     },
     'strategy': 'chrome-pool',
    'allowLocalFilesAccess': true,
    'numberOfWorkers': 3
}
</code></pre>
<p>This makes it working in local docker container, but still not working in the EC2. Do you have any clue about this? Thanks in advanc!</p>
]]></description><link>https://forum.jsreport.net/post/13658</link><guid isPermaLink="true">https://forum.jsreport.net/post/13658</guid><dc:creator><![CDATA[Davidliu11]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>