<?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>How to use nrf-docker in Bitbucket pipeline</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106850/how-to-use-nrf-docker-in-bitbucket-pipeline</link><description>I want to create automatic build using CI in bitbucket pipeline. 
 I would like to use image NordicPlayground / nrf-docker to compile the project. I saw the article Build NCS application firmware images using Docker - Getting Started - nRF Connect SDK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Jun 2025 11:53:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106850/how-to-use-nrf-docker-in-bitbucket-pipeline" /><item><title>RE: How to use nrf-docker in Bitbucket pipeline</title><link>https://devzone.nordicsemi.com/thread/540472?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2025 11:53:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16b6ccea-87fd-483a-be70-756cc2cc1cb7</guid><dc:creator>a.tv</dc:creator><description>&lt;p&gt;Thank you so much for this solution! I had to use a workaround to pull a docker image separately and then execute &amp;quot;docker run west build&amp;quot; on it. But your solution makes it possible to avoid using docker within docker on each step which shorten my build time from 12 to 3 minutes!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nrf-docker in Bitbucket pipeline</title><link>https://devzone.nordicsemi.com/thread/514471?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 10:43:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1df80eb7-f8a3-479e-9b3b-bcac81333179</guid><dc:creator>Bartlomiej</dc:creator><description>&lt;p&gt;I found the solution.&lt;br /&gt;&lt;br /&gt;I need to make the file&amp;nbsp;launch_tool.sh:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#!/bin/bash

# Checking whether an argument has been passed
if [ &amp;quot;$#&amp;quot; -eq 0 ]; then
    echo &amp;quot;You must provide at least one command to execute.&amp;quot;
    exit 1
fi

# Passing the command to nrfutil toolchain-manager launch
nrfutil toolchain-manager launch -- /bin/bash -c &amp;quot;$*&amp;quot;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And the step definition&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;    - step: &amp;amp;build_for_nrf52840dk_faster
        name: &amp;#39;Build for nrf52840dk board&amp;#39;
        image: nordicplayground/nrfconnect-sdk:v2.7-branch
        runs-on:
          - linux
        script:
          - HW_VERSION=&amp;quot;0.0.0&amp;quot;
          - source /workdir/zephyr/zephyr-env.sh # make visible west build
          - chmod +x launch_tool.sh              # make launch_tool.sh executable
          - ./launch_tool.sh west --version      # check west version
          - ./launch_tool.sh west build
            --pristine=always
            --board nrf52840dk/nrf52840
            --build-dir ${PWD}/build
            --
            -DBOARD_ROOT=${PWD}
            -DCONF_FILE=${PWD}/prj.conf
          - mv build/zephyr/zephyr.hex nrf52840dk_v${HW_VERSION}.hex&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nrf-docker in Bitbucket pipeline</title><link>https://devzone.nordicsemi.com/thread/461452?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2023 14:14:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4255d1f1-c598-4daf-a8a7-fb40bd56058e</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The problem might be that github action does not respect the entry point as noted &lt;a href="https://github.com/NordicPlayground/nrf-docker/blob/saga/Dockerfile#L91-L94"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;should try to&amp;nbsp; run &lt;code&gt;nrfutil toolchain-manager&lt;/code&gt;explicitly (like &lt;a title="https://github.com/hello-nrfcloud/firmware/blob/saga/.github/workflows/build.yml#l281" href="https://github.com/hello-nrfcloud/firmware/blob/saga/.github/workflows/build.yml#L281" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;).&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;At tech support we don&amp;#39;t normally interact&amp;nbsp;to much with automatic build systems so I can&amp;#39;t promise anything&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>