Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion audio-capture/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
```

Copy the result from the container image to a local directory build:
Expand Down
2 changes: 1 addition & 1 deletion audio-playback/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
```

Copy the result from the container image to a local directory build:
Expand Down
2 changes: 1 addition & 1 deletion axevent/send_event/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
```

Copy the result from the container image to a local directory build:
Expand Down
2 changes: 1 addition & 1 deletion axevent/subscribe_to_event/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
```

Copy the result from the container image to a local directory build:
Expand Down
2 changes: 1 addition & 1 deletion axevent/subscribe_to_events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
```

Copy the result from the container image to a local directory build:
Expand Down
2 changes: 1 addition & 1 deletion axserialport/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
```

Copy the result from the container image to a local directory called `build`:
Expand Down
2 changes: 1 addition & 1 deletion axstorage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
```

Copy the result from the container image to a local directory called `build`:
Expand Down
2 changes: 1 addition & 1 deletion hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
```

Copy the result from the container image to a local directory build:
Expand Down
2 changes: 1 addition & 1 deletion licensekey/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
```

Copy the result from the container image to a local directory build:
Expand Down
14 changes: 6 additions & 8 deletions object-detection-cv25/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,20 @@ The following instructions can be executed to simply run the example.
1. Compile the ACAP application:

```sh
docker build --platform=linux/amd64 --tag <APP_IMAGE> --build-arg ARCH=<ARCH> .
docker build --platform=linux/amd64 --tag <APP_IMAGE> .
```

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

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

```sh
docker cp $(docker create --platform=linux/amd64 <APP_IMAGE>):/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]
>
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down
12 changes: 6 additions & 6 deletions reproducible-package/reproducible_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion utility-libraries/custom_lib_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
```

Copy the result from the container image to a local directory build:
Expand Down
6 changes: 3 additions & 3 deletions utility-libraries/openssl_curl_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
```

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=<MY_PROXY> --tag <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg APP_PROXY=<MY_PROXY> --tag <APP_IMAGE> .
```

> **IMPORTANT**
Expand All @@ -146,7 +146,7 @@ docker build --build-arg APP_PROXY=<MY_PROXY> --tag <APP_IMAGE> .
To get more verbose logging from cURL, pass the following build argument:

```sh
docker build --build-arg APP_DEBUG=yes --tag <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg APP_DEBUG=yes --tag <APP_IMAGE> .
```

Copy the result from the container image to a local directory build:
Expand Down
10 changes: 5 additions & 5 deletions vdo-larod/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --build-arg CHIP=artpec8 --tag <APP_IMAGE> .
docker cp $(docker create --platform=linux/amd64 <APP_IMAGE>):/opt/app ./build
```

Expand All @@ -147,7 +147,7 @@ docker cp $(docker create --platform=linux/amd64 <APP_IMAGE>):/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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --build-arg CHIP=artpec9 --tag <APP_IMAGE> .
docker cp $(docker create --platform=linux/amd64 <APP_IMAGE>):/opt/app ./build
```

Expand All @@ -156,7 +156,7 @@ docker cp $(docker create --platform=linux/amd64 <APP_IMAGE>):/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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg CHIP=cpu --tag <APP_IMAGE> .
docker cp $(docker create --platform=linux/amd64 <APP_IMAGE>):/opt/app ./build
```

Expand All @@ -165,7 +165,7 @@ docker cp $(docker create --platform=linux/amd64 <APP_IMAGE>):/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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg CHIP=edgetpu --tag <APP_IMAGE> .
docker cp $(docker create --platform=linux/amd64 <APP_IMAGE>):/opt/app ./build
```

Expand All @@ -174,7 +174,7 @@ docker cp $(docker create --platform=linux/amd64 <APP_IMAGE>):/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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --build-arg CHIP=cv25 --tag <APP_IMAGE> .
docker cp $(docker create --platform=linux/amd64 <APP_IMAGE>):/opt/app ./build
```

Expand Down
2 changes: 1 addition & 1 deletion vdostream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<VDO_FORMAT> --tag <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --build-arg VDO_FORMAT=<VDO_FORMAT> --tag <APP_IMAGE> .
```

Copy the result from the container image to a local directory build:
Expand Down
2 changes: 1 addition & 1 deletion web-server-using-fastcgi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <APP_IMAGE> .
docker build --platform=linux/amd64 --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
```

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