Skip to content

Commit a9108c4

Browse files
authored
Merge pull request #76 from AxisCommunications/readme-add-aarch64-cmd
Add reference and command in README how to build aarch64
2 parents 74a5c11 + 5203efc commit a9108c4

File tree

15 files changed

+58
-40
lines changed

15 files changed

+58
-40
lines changed

axevent/send_event/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# Specify the architecture at build time: armv7hf/aarch64
2-
# Should be used for getting API image
3-
# Currently, only armv7hf is supported
41
ARG ARCH=armv7hf
52
ARG VERSION=3.2
63
ARG UBUNTU_VERSION=20.04
74
ARG REPO=axisecp
5+
ARG SDK=acap-sdk
86

9-
FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION}
7+
FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION}
108

119
# Building the ACAP application
1210
COPY ./app /opt/app/

axevent/send_event/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ docker build --tag <APP_IMAGE> .
5858

5959
<APP_IMAGE> is the name to tag the image with, e.g., send-event:1.0
6060

61+
Default architecture is **armv7hf**. To build for **aarch64** it's possible to
62+
update the *ARCH* variable in the Dockerfile or to set it in the docker build
63+
command via build argument:
64+
```bash
65+
docker build --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
66+
```
67+
6168
Copy the result from the container image to a local directory build:
6269

6370
```bash

axevent/subscribe_to_event/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# Specify the architecture at build time: armv7hf/aarch64
2-
# Should be used for getting API image
3-
# Currently, only armv7hf is supported
41
ARG ARCH=armv7hf
52
ARG VERSION=3.2
63
ARG UBUNTU_VERSION=20.04
74
ARG REPO=axisecp
5+
ARG SDK=acap-sdk
86

9-
FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION}
7+
FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION}
108

119
# Building the ACAP application
1210
COPY ./app /opt/app/

axevent/subscribe_to_event/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ docker build --tag <APP_IMAGE> .
4949

5050
<APP_IMAGE> is the name to tag the image with, e.g., subscribe-to-event:1.0
5151

52+
Default architecture is **armv7hf**. To build for **aarch64** it's possible to
53+
update the *ARCH* variable in the Dockerfile or to set it in the docker build
54+
command via build argument:
55+
```bash
56+
docker build --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
57+
```
58+
5259
Copy the result from the container image to a local directory build:
5360

5461
```bash

axevent/subscribe_to_events/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# Specify the architecture at build time: armv7hf/aarch64
2-
# Should be used for getting API image
3-
# Currently, only armv7hf is supported
41
ARG ARCH=armv7hf
52
ARG VERSION=3.2
63
ARG UBUNTU_VERSION=20.04
74
ARG REPO=axisecp
5+
ARG SDK=acap-sdk
86

9-
FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION}
7+
FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION}
108

119
# Building the ACAP application
1210
COPY ./app /opt/app/

axevent/subscribe_to_events/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ docker build --tag <APP_IMAGE> .
4949

5050
<APP_IMAGE> is the name to tag the image with, e.g., subscribe-to-events:1.0
5151

52+
Default architecture is **armv7hf**. To build for **aarch64** it's possible to
53+
update the *ARCH* variable in the Dockerfile or to set it in the docker build
54+
command via build argument:
55+
```bash
56+
docker build --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
57+
```
58+
5259
Copy the result from the container image to a local directory build:
5360

5461
```bash

axoverlay/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
# Specify the architecture at build time: armv7hf
2-
# Should be used for getting API image
3-
# Currently, only armv7hf is supported
41
ARG ARCH=armv7hf
52
ARG VERSION=3.2
63
ARG UBUNTU_VERSION=20.04
74
ARG REPO=axisecp
5+
ARG SDK=acap-sdk
6+
7+
FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION}
88

9-
FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION}
109

1110
# Building the ACAP application
1211
COPY ./app /opt/app/

larod/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# Specify the architecture at build time: armv7hf/aarch64
2-
# Should be used for getting API image
3-
# Currently, only armv7hf is supported
41
ARG ARCH=armv7hf
52
ARG VERSION=3.2
63
ARG UBUNTU_VERSION=20.04
74
ARG REPO=axisecp
5+
ARG SDK=acap-sdk
86

9-
FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION}
7+
FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION}
108

119
# Building the ACAP application
1210
COPY ./app /opt/app/

licensekey/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# Specify the architecture at build time: armv7hf/aarch64
2-
# Should be used for getting API image
3-
# Currently, only armv7hf is supported
41
ARG ARCH=armv7hf
52
ARG VERSION=3.2
63
ARG UBUNTU_VERSION=20.04
74
ARG REPO=axisecp
5+
ARG SDK=acap-sdk
86

9-
FROM ${REPO}/acap-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION}
7+
FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION}
108

119
# Building the ACAP application
1210
COPY ./app /opt/app/

licensekey/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ docker build --tag <APP_IMAGE> .
5151

5252
<APP_IMAGE> is the name to tag the image with, e.g., licensekey_handler:1.0
5353

54+
Default architecture is **armv7hf**. To build for **aarch64** it's possible to
55+
update the *ARCH* variable in the Dockerfile or to set it in the docker build
56+
command via build argument:
57+
```bash
58+
docker build --build-arg ARCH=aarch64 --tag <APP_IMAGE> .
59+
```
60+
5461
Copy the result from the container image to a local directory build:
5562

5663
```bash

0 commit comments

Comments
 (0)