Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hubpav committed Dec 26, 2022
1 parent 6994c19 commit 121ff7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ cd nrf-connect-sdk-build-docker
Build the **Docker** image using this command:

```
docker build -t hardwario/nrf-connect-sdk-build:v2.2.0 .
docker build -t nrf-connect-sdk-build:v2.2.0 .
```

## Test Docker Image

Run this command to print the **West** tool version:

```
docker run --rm -it hardwario/nrf-connect-sdk-build:v2.2.0 west --version
docker run --rm -it nrf-connect-sdk-build:v2.2.0 west --version
```

## Build Firmware

Run this command to build firmware using the **Docker** image:

```
sh -c 'docker run --rm -it --user $(id -u):$(id -g) -v $(pwd):/build --workdir /build/zephyr/samples/basic/blinky hardwario/nrf-connect-sdk-build:v2.2.0 west build -b <BOARD_NAME>'
sh -c 'docker run --rm -it -u $(id -u):$(id -g) -v $(pwd):/build -w /build/zephyr/samples/basic/blinky nrf-connect-sdk-build:v2.2.0 west build -b <BOARD_NAME>'
```

> This command must be run from the root directory of your **West** workspace. Note that the `docker` command is encapsulated under the `sh` command, so the users of the **Fish** shell can evaluate this example seamlessly. Do not forget to replace the `<BOARD_NAME>` parameter with the real board.
Expand Down

0 comments on commit 121ff7a

Please sign in to comment.