How to use latest nordicplayground/nrfconnect-sdk docker images ?

Hi,

We are currently using "nordicplayground/nrfconnect-sdk:v1.9-branch" docker images for our gitlab CI and it works great.

Unfortunately with more recent images( supporting SDK 2.3 or 2.5) the docker images have not the same behavior and CI is then broken.

For my tests I have used the following .gitlab-ci.yml (and only change "v1.9" to "v2.3") :

image: "nordicplayground/nrfconnect-sdk:v1.9-branch"

test:
  before_script:
    - echo 'before_script'
  script:
    - echo 'script'
  tags: 
    - linux

With "nordicplayground/nrfconnect-sdk:v1.9-branch" :

With "nordicplayground/nrfconnect-sdk:v2.3-branch" :

I don't tell that docker images are not working (I have tested them manually and it's ok) but I want to find the way to use them with our CI.

From my googling researches I have only found that  Robert-PillConnect's CI (github) project seems to run a "docker in docker" :

Is that the only way to use latest images ?

Best regards,

Arnaud

Parents
  • Hi,

    In case someone else runs in to this issue with a gitlab docker runner, this is my solution:

    image:
      name: "nordicplayground/nrfconnect-sdk:v2.7-branch"
      entrypoint: [""]
    
    build:
      script:
        # running outside of west workspace
        - source /workdir/zephyr/zephyr-env.sh
        - nrfutil toolchain-manager launch -- west build -p always -b xiao_ble --sysbuild --build-dir ./build
    
      tags: 
        - docker

Reply
  • Hi,

    In case someone else runs in to this issue with a gitlab docker runner, this is my solution:

    image:
      name: "nordicplayground/nrfconnect-sdk:v2.7-branch"
      entrypoint: [""]
    
    build:
      script:
        # running outside of west workspace
        - source /workdir/zephyr/zephyr-env.sh
        - nrfutil toolchain-manager launch -- west build -p always -b xiao_ble --sysbuild --build-dir ./build
    
      tags: 
        - docker

Children
No Data
Related