Skip to content

Commit

Permalink
Merge pull request #76 from AxisCommunications/readme-add-aarch64-cmd
Browse files Browse the repository at this point in the history
Add reference and command in README how to build aarch64
  • Loading branch information
pataxis authored Apr 21, 2021
2 parents 74a5c11 + 5203efc commit a9108c4
Show file tree
Hide file tree
Showing 15 changed files with 58 additions and 40 deletions.
6 changes: 2 additions & 4 deletions axevent/send_event/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
7 changes: 7 additions & 0 deletions axevent/send_event/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ docker build --tag <APP_IMAGE> .

<APP_IMAGE> 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 <APP_IMAGE> .
```

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

```bash
Expand Down
6 changes: 2 additions & 4 deletions axevent/subscribe_to_event/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
7 changes: 7 additions & 0 deletions axevent/subscribe_to_event/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ docker build --tag <APP_IMAGE> .

<APP_IMAGE> 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 <APP_IMAGE> .
```

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

```bash
Expand Down
6 changes: 2 additions & 4 deletions axevent/subscribe_to_events/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
7 changes: 7 additions & 0 deletions axevent/subscribe_to_events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ docker build --tag <APP_IMAGE> .

<APP_IMAGE> 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 <APP_IMAGE> .
```

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

```bash
Expand Down
7 changes: 3 additions & 4 deletions axoverlay/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
6 changes: 2 additions & 4 deletions larod/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
6 changes: 2 additions & 4 deletions licensekey/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
7 changes: 7 additions & 0 deletions licensekey/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ docker build --tag <APP_IMAGE> .

<APP_IMAGE> 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 <APP_IMAGE> .
```

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

```bash
Expand Down
6 changes: 2 additions & 4 deletions tensorflow-to-larod/env/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions using-opencv/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 2 additions & 4 deletions vdo-larod/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 2 additions & 4 deletions vdostream/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
7 changes: 7 additions & 0 deletions vdostream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ docker build --tag <APP_IMAGE> .

<APP_IMAGE> 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 <APP_IMAGE> .
```

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

```bash
Expand Down

0 comments on commit a9108c4

Please sign in to comment.