<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Building a custom project using NRF Docker image</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103093/building-a-custom-project-using-nrf-docker-image</link><description>Hi, 
 I&amp;#39;m trying to build my custom test project with the nRF Docker in accordance with https://github.com/NordicPlayground/nrf-docker . 
 I&amp;#39;ve started with this simple script for nRF asset_tracker_v2 project which pretty successfully yields the desirable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 May 2024 15:47:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103093/building-a-custom-project-using-nrf-docker-image" /><item><title>RE: Building a custom project using NRF Docker image</title><link>https://devzone.nordicsemi.com/thread/484754?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 15:47:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d198ae5c-3ff8-46e3-a7c6-20afde9b2330</guid><dc:creator>Viral Patel</dc:creator><description>&lt;div&gt;&lt;span&gt;This works fine.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; - &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Copy the project into docker&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;run&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; docker create --name cont_tst nordicplayground/nrfconnect-sdk:v2.5-branch &amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cd &lt;/span&gt;&lt;span&gt;${{&lt;/span&gt;&lt;span&gt;github&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;workspace&lt;/span&gt;&lt;span&gt;}}&lt;/span&gt;&lt;span&gt;/my_project&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; docker cp . cont_tst:/workdir/project &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; docker rm cont_tst &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; docker run --name cont_tst -v ${PWD}:/workdir/project -w /workdir/project nordicplayground/nrfconnect-sdk:v2.5-branch west build -s /workdir/project -p always -b nrf52840dk_nrf52840 --build-dir /workdir/project/build&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;After this, we can extract the zephyr artifacts.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a custom project using NRF Docker image</title><link>https://devzone.nordicsemi.com/thread/484739?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 14:29:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:764c3056-0471-4a47-aa71-f54916ecea3e</guid><dc:creator>Viral Patel</dc:creator><description>[deleted]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a custom project using NRF Docker image</title><link>https://devzone.nordicsemi.com/thread/443283?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2023 07:06:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af0d5a3a-bc9d-4fe3-9f4a-31a74f4bea1d</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi, thanks for sharing! Other DevZone users will benefit from this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a custom project using NRF Docker image</title><link>https://devzone.nordicsemi.com/thread/443142?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2023 10:35:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aac7850-6935-4b0d-8c29-d4953f7c35d2</guid><dc:creator>epsgam</dc:creator><description>&lt;p&gt;Hi, all,&lt;/p&gt;
&lt;p&gt;I believe I&amp;#39;ve got a clue.&lt;/p&gt;
&lt;p&gt;We need to copy a local project into a docker beforhand with commands like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;docker create --name cont_tst nordicplayground/nrfconnect-sdk:v2.4-branch
docker cp . cont_tst:/workdir/project&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then we can get it run like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;docker run --name cont_tst -v ${PWD}:/workdir/project/my_test_project -w /workdir/project/my_test_project nordicplayground/nrfconnect-sdk:v2.4-branch west build -p always -b nrf5340dk_nrf5340_cpuapp --build-dir /workdir/project/my_test_project/build&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So this ticket can be closed, alas.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>