diff --git a/axevent/send_event/Dockerfile b/axevent/send_event/Dockerfile index f55bd94..a9b2f3c 100644 --- a/axevent/send_event/Dockerfile +++ b/axevent/send_event/Dockerfile @@ -1,12 +1,10 @@ -# Specify the architecture at build time: armv7hf/aarch64 -# Should be used for getting API image -# Currently, only armv7hf is supported ARG ARCH=armv7hf ARG VERSION=3.2 ARG UBUNTU_VERSION=20.04 ARG REPO=axisecp +ARG SDK=acap-sdk -FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} +FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} # Building the ACAP application COPY ./app /opt/app/ diff --git a/axevent/send_event/README.md b/axevent/send_event/README.md index cef56b8..74f4917 100644 --- a/axevent/send_event/README.md +++ b/axevent/send_event/README.md @@ -58,6 +58,13 @@ docker build --tag . is the name to tag the image with, e.g., send-event:1.0 +Default architecture is **armv7hf**. To build for **aarch64** it's possible to +update the *ARCH* variable in the Dockerfile or to set it in the docker build +command via build argument: +```bash +docker build --build-arg ARCH=aarch64 --tag . +``` + Copy the result from the container image to a local directory build: ```bash diff --git a/axevent/subscribe_to_event/Dockerfile b/axevent/subscribe_to_event/Dockerfile index f55bd94..a9b2f3c 100644 --- a/axevent/subscribe_to_event/Dockerfile +++ b/axevent/subscribe_to_event/Dockerfile @@ -1,12 +1,10 @@ -# Specify the architecture at build time: armv7hf/aarch64 -# Should be used for getting API image -# Currently, only armv7hf is supported ARG ARCH=armv7hf ARG VERSION=3.2 ARG UBUNTU_VERSION=20.04 ARG REPO=axisecp +ARG SDK=acap-sdk -FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} +FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} # Building the ACAP application COPY ./app /opt/app/ diff --git a/axevent/subscribe_to_event/README.md b/axevent/subscribe_to_event/README.md index f613db4..f849d55 100644 --- a/axevent/subscribe_to_event/README.md +++ b/axevent/subscribe_to_event/README.md @@ -49,6 +49,13 @@ docker build --tag . is the name to tag the image with, e.g., subscribe-to-event:1.0 +Default architecture is **armv7hf**. To build for **aarch64** it's possible to +update the *ARCH* variable in the Dockerfile or to set it in the docker build +command via build argument: +```bash +docker build --build-arg ARCH=aarch64 --tag . +``` + Copy the result from the container image to a local directory build: ```bash diff --git a/axevent/subscribe_to_events/Dockerfile b/axevent/subscribe_to_events/Dockerfile index a13b372..4a8d4e9 100644 --- a/axevent/subscribe_to_events/Dockerfile +++ b/axevent/subscribe_to_events/Dockerfile @@ -1,12 +1,10 @@ -# Specify the architecture at build time: armv7hf/aarch64 -# Should be used for getting API image -# Currently, only armv7hf is supported ARG ARCH=armv7hf ARG VERSION=3.2 ARG UBUNTU_VERSION=20.04 ARG REPO=axisecp +ARG SDK=acap-sdk -FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} +FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} # Building the ACAP application COPY ./app /opt/app/ diff --git a/axevent/subscribe_to_events/README.md b/axevent/subscribe_to_events/README.md index 216e232..d03854b 100644 --- a/axevent/subscribe_to_events/README.md +++ b/axevent/subscribe_to_events/README.md @@ -49,6 +49,13 @@ docker build --tag . is the name to tag the image with, e.g., subscribe-to-events:1.0 +Default architecture is **armv7hf**. To build for **aarch64** it's possible to +update the *ARCH* variable in the Dockerfile or to set it in the docker build +command via build argument: +```bash +docker build --build-arg ARCH=aarch64 --tag . +``` + Copy the result from the container image to a local directory build: ```bash diff --git a/axoverlay/Dockerfile b/axoverlay/Dockerfile index 6ef79da..e73622a 100644 --- a/axoverlay/Dockerfile +++ b/axoverlay/Dockerfile @@ -1,12 +1,11 @@ -# Specify the architecture at build time: armv7hf -# Should be used for getting API image -# Currently, only armv7hf is supported ARG ARCH=armv7hf ARG VERSION=3.2 ARG UBUNTU_VERSION=20.04 ARG REPO=axisecp +ARG SDK=acap-sdk + +FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} -FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} # Building the ACAP application COPY ./app /opt/app/ diff --git a/larod/Dockerfile b/larod/Dockerfile index f55bd94..a9b2f3c 100644 --- a/larod/Dockerfile +++ b/larod/Dockerfile @@ -1,12 +1,10 @@ -# Specify the architecture at build time: armv7hf/aarch64 -# Should be used for getting API image -# Currently, only armv7hf is supported ARG ARCH=armv7hf ARG VERSION=3.2 ARG UBUNTU_VERSION=20.04 ARG REPO=axisecp +ARG SDK=acap-sdk -FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} +FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} # Building the ACAP application COPY ./app /opt/app/ diff --git a/licensekey/Dockerfile b/licensekey/Dockerfile index f55bd94..a9b2f3c 100644 --- a/licensekey/Dockerfile +++ b/licensekey/Dockerfile @@ -1,12 +1,10 @@ -# Specify the architecture at build time: armv7hf/aarch64 -# Should be used for getting API image -# Currently, only armv7hf is supported ARG ARCH=armv7hf ARG VERSION=3.2 ARG UBUNTU_VERSION=20.04 ARG REPO=axisecp +ARG SDK=acap-sdk -FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} +FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} # Building the ACAP application COPY ./app /opt/app/ diff --git a/licensekey/README.md b/licensekey/README.md index 1971e02..c56fe7d 100644 --- a/licensekey/README.md +++ b/licensekey/README.md @@ -51,6 +51,13 @@ docker build --tag . is the name to tag the image with, e.g., licensekey_handler:1.0 +Default architecture is **armv7hf**. To build for **aarch64** it's possible to +update the *ARCH* variable in the Dockerfile or to set it in the docker build +command via build argument: +```bash +docker build --build-arg ARCH=aarch64 --tag . +``` + Copy the result from the container image to a local directory build: ```bash diff --git a/tensorflow-to-larod/env/Dockerfile b/tensorflow-to-larod/env/Dockerfile index e26c971..68ac39e 100755 --- a/tensorflow-to-larod/env/Dockerfile +++ b/tensorflow-to-larod/env/Dockerfile @@ -1,14 +1,12 @@ -# Specify the architecture at build time: armv7hf -# Should be used for getting API and toolchain image -# Currently, only armv7hf is supported ARG http_proxy ARG https_proxy ARG ARCH=armv7hf ARG VERSION=3.2 ARG UBUNTU_VERSION=20.04 ARG REPO=axisecp +ARG SDK=acap-sdk -FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} +FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} # Build libyuv WORKDIR /opt/build diff --git a/using-opencv/Dockerfile b/using-opencv/Dockerfile index 26b5529..8d859ce 100644 --- a/using-opencv/Dockerfile +++ b/using-opencv/Dockerfile @@ -1,12 +1,12 @@ -# Specify the architecture at build time: armv7hf -# Should be used for getting API and toolchain images -# Currently, only armv7hf is supported ARG http_proxy ARG https_proxy ARG ARCH=armv7hf +ARG REPO=axisecp +ARG SDK=acap-sdk +ARG UBUNTU_VERSION=20.04 ARG VERSION=3.2 -FROM axisecp/acap-sdk:${VERSION}-${ARCH}-ubuntu20.04 as sdk +FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} # Add a sources.list file that contains the armhf repositories COPY sources.list /etc/apt diff --git a/vdo-larod/Dockerfile b/vdo-larod/Dockerfile index e871e09..1e56e65 100644 --- a/vdo-larod/Dockerfile +++ b/vdo-larod/Dockerfile @@ -1,12 +1,10 @@ -# Specify the architecture at build time: armv7hf -# Should be used for getting API and toolchain image -# Currently, only armv7hf is supported ARG ARCH=armv7hf ARG VERSION=3.2 ARG UBUNTU_VERSION=20.04 ARG REPO=axisecp +ARG SDK=acap-sdk -FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} +FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} # Build libyuv WORKDIR /opt/build diff --git a/vdostream/Dockerfile b/vdostream/Dockerfile index f55bd94..a9b2f3c 100644 --- a/vdostream/Dockerfile +++ b/vdostream/Dockerfile @@ -1,12 +1,10 @@ -# Specify the architecture at build time: armv7hf/aarch64 -# Should be used for getting API image -# Currently, only armv7hf is supported ARG ARCH=armv7hf ARG VERSION=3.2 ARG UBUNTU_VERSION=20.04 ARG REPO=axisecp +ARG SDK=acap-sdk -FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} +FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} # Building the ACAP application COPY ./app /opt/app/ diff --git a/vdostream/README.md b/vdostream/README.md index 8f77189..5c6c22b 100644 --- a/vdostream/README.md +++ b/vdostream/README.md @@ -49,6 +49,13 @@ docker build --tag . is the name to tag the image with, e.g., vdoencodeclient:1.0 +Default architecture is **armv7hf**. To build for **aarch64** it's possible to +update the *ARCH* variable in the Dockerfile or to set it in the docker build +command via build argument: +```bash +docker build --build-arg ARCH=aarch64 --tag . +``` + Copy the result from the container image to a local directory build: ```bash