Skip to content

Commit 9f2c942

Browse files
isak-jakobssonjohan-hultberg-work
authored andcommitted
readme: add --platform flag to all places
1 parent 23d8a6f commit 9f2c942

File tree

16 files changed

+32
-34
lines changed

16 files changed

+32
-34
lines changed

audio-capture/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build`
5757
command via build argument:
5858

5959
```sh
60-
docker build --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
60+
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
6161
```
6262

6363
Copy the result from the container image to a local directory build:

audio-playback/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build`
5757
command via build argument:
5858

5959
```sh
60-
docker build --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
60+
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
6161
```
6262

6363
Copy the result from the container image to a local directory build:

axevent/send_event/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build`
6666
command via build argument:
6767

6868
```sh
69-
docker build --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
69+
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
7070
```
7171

7272
Copy the result from the container image to a local directory build:

axevent/subscribe_to_event/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build`
5757
command via build argument:
5858

5959
```sh
60-
docker build --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
60+
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
6161
```
6262

6363
Copy the result from the container image to a local directory build:

axevent/subscribe_to_events/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build`
6363
command via build argument:
6464

6565
```sh
66-
docker build --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
66+
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
6767
```
6868

6969
Copy the result from the container image to a local directory build:

axserialport/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build`
5252
command via build argument:
5353

5454
```sh
55-
docker build --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
55+
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
5656
```
5757

5858
Copy the result from the container image to a local directory called `build`:

axstorage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build`
4949
command via build argument:
5050

5151
```sh
52-
docker build --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
52+
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
5353
```
5454

5555
Copy the result from the container image to a local directory called `build`:

hello-world/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build`
5353
command via build argument:
5454

5555
```sh
56-
docker build --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
56+
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
5757
```
5858

5959
Copy the result from the container image to a local directory build:

licensekey/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build`
5757
command via build argument:
5858

5959
```sh
60-
docker build --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
60+
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
6161
```
6262

6363
Copy the result from the container image to a local directory build:

object-detection-cv25/README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,20 @@ The following instructions can be executed to simply run the example.
1818
1. Compile the ACAP application:
1919

2020
```sh
21-
docker build --platform=linux/amd64 --tag <APP_IMAGE> --build-arg ARCH=<ARCH> .
21+
docker build --platform=linux/amd64 --tag <APP_IMAGE> .
2222
```
2323

2424
- `<APP_IMAGE>` is the name to tag the image with, e.g., `obj_detect:1.0`
25-
- `<ARCH>` is the SDK architecture, `armv7hf` or `aarch64`
2625

2726
Copy the result from the container image to a local directory `build`:
2827

2928
```sh
3029
docker cp $(docker create --platform=linux/amd64 <APP_IMAGE>):/opt/app ./build
3130
```
3231

33-
The `build` directory contains the build artifacts, where the ACAP application is found with suffix `.eap`, depending on which SDK architecture that was chosen, one of these files should be found:
32+
The `build` directory contains the build artifacts, where the ACAP application is found with suffix `.eap`:
3433

35-
- `obj_detect_1_0_0_aarch64.eap`
36-
- `obj_detect_1_0_0_armv7hf.eap`
34+
- `object_detection_cv25_1_0_0_aarch64.eap`
3735

3836
> [!NOTE]
3937
>
@@ -42,7 +40,7 @@ The following instructions can be executed to simply run the example.
4240
1. Find the ACAP application `.eap` file
4341

4442
```sh
45-
build/object_detection_app_1_0_0_cv25.eap
43+
build/object_detection_cv25_1_0_0_aarch64.eap
4644
```
4745

4846
2. Install and start the ACAP application on your camera through the camera web GUI
@@ -247,8 +245,8 @@ in the [app](app) directory. Standing in the application directory, run:
247245
> [Proxy in build time](https://developer.axis.com/acap/develop/proxy/#proxy-in-build-time).
248246
249247
```sh
250-
docker build --tag obj_detect:1.0 .
251-
docker cp $(docker create obj_detect:1.0):/opt/app ./build
248+
docker build --platform=linux/amd64 --tag obj_detect:1.0 .
249+
docker cp $(docker --platform=linux/amd64 create obj_detect:1.0):/opt/app ./build
252250
```
253251
254252
The installable `.eap` file is found under:

0 commit comments

Comments
 (0)