diff --git a/audio-capture/README.md b/audio-capture/README.md index 9a2c7dbc..65fcc4d8 100644 --- a/audio-capture/README.md +++ b/audio-capture/README.md @@ -57,7 +57,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build` command via build argument: ```sh -docker build --build-arg ARCH=aarch64 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag . ``` Copy the result from the container image to a local directory build: diff --git a/audio-playback/README.md b/audio-playback/README.md index b10e2e44..17aee69c 100644 --- a/audio-playback/README.md +++ b/audio-playback/README.md @@ -57,7 +57,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build` command via build argument: ```sh -docker build --build-arg ARCH=aarch64 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag . ``` Copy the result from the container image to a local directory build: diff --git a/axevent/send_event/README.md b/axevent/send_event/README.md index 1b912f92..bced3c51 100644 --- a/axevent/send_event/README.md +++ b/axevent/send_event/README.md @@ -66,7 +66,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build` command via build argument: ```sh -docker build --build-arg ARCH=aarch64 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag . ``` Copy the result from the container image to a local directory build: diff --git a/axevent/subscribe_to_event/README.md b/axevent/subscribe_to_event/README.md index 1c02f1d1..f2761ff0 100644 --- a/axevent/subscribe_to_event/README.md +++ b/axevent/subscribe_to_event/README.md @@ -57,7 +57,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build` command via build argument: ```sh -docker build --build-arg ARCH=aarch64 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag . ``` Copy the result from the container image to a local directory build: diff --git a/axevent/subscribe_to_events/README.md b/axevent/subscribe_to_events/README.md index ad53c943..d8ba3d06 100644 --- a/axevent/subscribe_to_events/README.md +++ b/axevent/subscribe_to_events/README.md @@ -63,7 +63,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build` command via build argument: ```sh -docker build --build-arg ARCH=aarch64 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag . ``` Copy the result from the container image to a local directory build: diff --git a/axserialport/README.md b/axserialport/README.md index 02985c63..9a15839c 100644 --- a/axserialport/README.md +++ b/axserialport/README.md @@ -52,7 +52,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build` command via build argument: ```sh -docker build --build-arg ARCH=aarch64 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag . ``` Copy the result from the container image to a local directory called `build`: diff --git a/axstorage/README.md b/axstorage/README.md index 622ddd41..74b0ed2a 100644 --- a/axstorage/README.md +++ b/axstorage/README.md @@ -49,7 +49,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build` command via build argument: ```sh -docker build --build-arg ARCH=aarch64 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag . ``` Copy the result from the container image to a local directory called `build`: diff --git a/hello-world/README.md b/hello-world/README.md index f8c5094a..ca667c1f 100644 --- a/hello-world/README.md +++ b/hello-world/README.md @@ -53,7 +53,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build` command via build argument: ```sh -docker build --build-arg ARCH=aarch64 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag . ``` Copy the result from the container image to a local directory build: diff --git a/licensekey/README.md b/licensekey/README.md index 589533ec..0266238a 100644 --- a/licensekey/README.md +++ b/licensekey/README.md @@ -57,7 +57,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build` command via build argument: ```sh -docker build --build-arg ARCH=aarch64 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag . ``` Copy the result from the container image to a local directory build: diff --git a/object-detection-cv25/README.md b/object-detection-cv25/README.md index 49ac5c53..c6b47067 100644 --- a/object-detection-cv25/README.md +++ b/object-detection-cv25/README.md @@ -18,11 +18,10 @@ The following instructions can be executed to simply run the example. 1. Compile the ACAP application: ```sh - docker build --platform=linux/amd64 --tag --build-arg ARCH= . + docker build --platform=linux/amd64 --tag . ``` - `` is the name to tag the image with, e.g., `obj_detect:1.0` - - `` is the SDK architecture, `armv7hf` or `aarch64` Copy the result from the container image to a local directory `build`: @@ -30,10 +29,9 @@ The following instructions can be executed to simply run the example. docker cp $(docker create --platform=linux/amd64 ):/opt/app ./build ``` - 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: + The `build` directory contains the build artifacts, where the ACAP application is found with suffix `.eap`: - - `obj_detect_1_0_0_aarch64.eap` - - `obj_detect_1_0_0_armv7hf.eap` + - `object_detection_cv25_1_0_0_aarch64.eap` > [!NOTE] > @@ -42,7 +40,7 @@ The following instructions can be executed to simply run the example. 1. Find the ACAP application `.eap` file ```sh - build/object_detection_app_1_0_0_cv25.eap + build/object_detection_cv25_1_0_0_aarch64.eap ``` 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: > [Proxy in build time](https://developer.axis.com/acap/develop/proxy/#proxy-in-build-time). ```sh -docker build --tag obj_detect:1.0 . -docker cp $(docker create obj_detect:1.0):/opt/app ./build +docker build --platform=linux/amd64 --tag obj_detect:1.0 . +docker cp $(docker --platform=linux/amd64 create obj_detect:1.0):/opt/app ./build ``` The installable `.eap` file is found under: diff --git a/reproducible-package/reproducible_package.sh b/reproducible-package/reproducible_package.sh index 7752dac4..11420976 100755 --- a/reproducible-package/reproducible_package.sh +++ b/reproducible-package/reproducible_package.sh @@ -29,19 +29,19 @@ build_and_extract() { local __arch=$1 # Run first build - without any reproducibility - docker build --no-cache --build-arg ARCH="$__arch" --tag rep-"$__arch":1 . + docker build --platform=linux/amd64 --no-cache --build-arg ARCH="$__arch" --tag rep-"$__arch":1 . # shellcheck disable=SC2046 # Docker container ID never needs to have quotes - docker cp $(docker create rep-"$__arch":1):/opt/app ./build1 + docker cp $(docker create --platform=linux/amd64 rep-"$__arch":1):/opt/app ./build1 # Second build - with reproducibility - docker build --no-cache --build-arg ARCH="$__arch" --build-arg TIMESTAMP="$(git log -1 --pretty=%ct)" --tag rep-"$__arch":2 . + docker build --platform=linux/amd64 --no-cache --build-arg ARCH="$__arch" --build-arg TIMESTAMP="$(git log -1 --pretty=%ct)" --tag rep-"$__arch":2 . # shellcheck disable=SC2046 # Docker container ID never needs to have quotes - docker cp $(docker create rep-"$__arch":2):/opt/app ./build2 + docker cp $(docker create --platform=linux/amd64 rep-"$__arch":2):/opt/app ./build2 # Third build - with reproducibility - docker build --no-cache --build-arg ARCH="$__arch" --build-arg TIMESTAMP="$(git log -1 --pretty=%ct)" --tag rep-"$__arch":3 . + docker build --platform=linux/amd64 --no-cache --build-arg ARCH="$__arch" --build-arg TIMESTAMP="$(git log -1 --pretty=%ct)" --tag rep-"$__arch":3 . # shellcheck disable=SC2046 # Docker container ID never needs to have quotes - docker cp $(docker create rep-"$__arch":3):/opt/app ./build3 + docker cp $(docker create --platform=linux/amd64 rep-"$__arch":3):/opt/app ./build3 } check_reproducible_eap() { diff --git a/utility-libraries/custom_lib_example/README.md b/utility-libraries/custom_lib_example/README.md index 6f38f452..c902527b 100644 --- a/utility-libraries/custom_lib_example/README.md +++ b/utility-libraries/custom_lib_example/README.md @@ -56,7 +56,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build` command via build argument: ```sh -docker build --build-arg ARCH=aarch64 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag . ``` Copy the result from the container image to a local directory build: diff --git a/utility-libraries/openssl_curl_example/README.md b/utility-libraries/openssl_curl_example/README.md index ac999947..0c5590ae 100644 --- a/utility-libraries/openssl_curl_example/README.md +++ b/utility-libraries/openssl_curl_example/README.md @@ -130,14 +130,14 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build` command via build argument: ```sh -docker build --build-arg ARCH=aarch64 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag . ``` If the device is inside a network with a proxy, then it can be passed on as a build argument: ```sh -docker build --build-arg APP_PROXY= --tag . +docker build --platform=linux/amd64 --build-arg APP_PROXY= --tag . ``` > **IMPORTANT** @@ -146,7 +146,7 @@ docker build --build-arg APP_PROXY= --tag . To get more verbose logging from cURL, pass the following build argument: ```sh -docker build --build-arg APP_DEBUG=yes --tag . +docker build --platform=linux/amd64 --build-arg APP_DEBUG=yes --tag . ``` Copy the result from the container image to a local directory build: diff --git a/vdo-larod/README.md b/vdo-larod/README.md index 36992449..05ee17c1 100644 --- a/vdo-larod/README.md +++ b/vdo-larod/README.md @@ -138,7 +138,7 @@ See the following sections for build commands for each chip. To build a package for ARTPEC-8 with Tensorflow Lite, run the following commands standing in your working directory: ```sh -docker build --build-arg ARCH=aarch64 --build-arg CHIP=artpec8 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --build-arg CHIP=artpec8 --tag . docker cp $(docker create --platform=linux/amd64 ):/opt/app ./build ``` @@ -147,7 +147,7 @@ docker cp $(docker create --platform=linux/amd64 ):/opt/app ./build To build a package for ARTPEC-9 with Tensorflow Lite, run the following commands standing in your working directory: ```sh -docker build --build-arg ARCH=aarch64 --build-arg CHIP=artpec9 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --build-arg CHIP=artpec9 --tag . docker cp $(docker create --platform=linux/amd64 ):/opt/app ./build ``` @@ -156,7 +156,7 @@ docker cp $(docker create --platform=linux/amd64 ):/opt/app ./build To build a package for CPU with Tensorflow Lite, run the following commands standing in your working directory: ```sh -docker build --build-arg CHIP=cpu --tag . +docker build --platform=linux/amd64 --build-arg CHIP=cpu --tag . docker cp $(docker create --platform=linux/amd64 ):/opt/app ./build ``` @@ -165,7 +165,7 @@ docker cp $(docker create --platform=linux/amd64 ):/opt/app ./build To build a package for Google TPU instead, run the following commands standing in your working directory: ```sh -docker build --build-arg CHIP=edgetpu --tag . +docker build --platform=linux/amd64 --build-arg CHIP=edgetpu --tag . docker cp $(docker create --platform=linux/amd64 ):/opt/app ./build ``` @@ -174,7 +174,7 @@ docker cp $(docker create --platform=linux/amd64 ):/opt/app ./build To build a package for CV25 run the following commands standing in your working directory: ```sh -docker build --build-arg ARCH=aarch64 --build-arg CHIP=cv25 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --build-arg CHIP=cv25 --tag . docker cp $(docker create --platform=linux/amd64 ):/opt/app ./build ``` diff --git a/vdostream/README.md b/vdostream/README.md index 399313c5..0d68720d 100644 --- a/vdostream/README.md +++ b/vdostream/README.md @@ -69,7 +69,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build` command via build argument: ```sh -docker build --build-arg ARCH=aarch64 --build-arg VDO_FORMAT= --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --build-arg VDO_FORMAT= --tag . ``` Copy the result from the container image to a local directory build: diff --git a/web-server-using-fastcgi/README.md b/web-server-using-fastcgi/README.md index 60934c0b..fcbb4fac 100644 --- a/web-server-using-fastcgi/README.md +++ b/web-server-using-fastcgi/README.md @@ -85,7 +85,7 @@ update the *ARCH* variable in the Dockerfile or to set it in the `docker build` command via build argument: ```sh -docker build --build-arg ARCH=aarch64 --tag . +docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag . ``` Copy the result from the container image to a local directory called `build`: