File tree Expand file tree Collapse file tree 15 files changed +58
-40
lines changed
Expand file tree Collapse file tree 15 files changed +58
-40
lines changed Original file line number Diff line number Diff line change 1- # Specify the architecture at build time: armv7hf/aarch64
2- # Should be used for getting API image
3- # Currently, only armv7hf is supported
41ARG ARCH=armv7hf
52ARG VERSION=3.2
63ARG UBUNTU_VERSION=20.04
74ARG 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
1210COPY ./app /opt/app/
Original file line number Diff line number Diff 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+
6168Copy the result from the container image to a local directory build:
6269
6370``` bash
Original file line number Diff line number Diff line change 1- # Specify the architecture at build time: armv7hf/aarch64
2- # Should be used for getting API image
3- # Currently, only armv7hf is supported
41ARG ARCH=armv7hf
52ARG VERSION=3.2
63ARG UBUNTU_VERSION=20.04
74ARG 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
1210COPY ./app /opt/app/
Original file line number Diff line number Diff 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+
5259Copy the result from the container image to a local directory build:
5360
5461``` bash
Original file line number Diff line number Diff line change 1- # Specify the architecture at build time: armv7hf/aarch64
2- # Should be used for getting API image
3- # Currently, only armv7hf is supported
41ARG ARCH=armv7hf
52ARG VERSION=3.2
63ARG UBUNTU_VERSION=20.04
74ARG 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
1210COPY ./app /opt/app/
Original file line number Diff line number Diff 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+
5259Copy the result from the container image to a local directory build:
5360
5461``` bash
Original file line number Diff line number Diff line change 1- # Specify the architecture at build time: armv7hf
2- # Should be used for getting API image
3- # Currently, only armv7hf is supported
41ARG ARCH=armv7hf
52ARG VERSION=3.2
63ARG UBUNTU_VERSION=20.04
74ARG 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
1211COPY ./app /opt/app/
Original file line number Diff line number Diff line change 1- # Specify the architecture at build time: armv7hf/aarch64
2- # Should be used for getting API image
3- # Currently, only armv7hf is supported
41ARG ARCH=armv7hf
52ARG VERSION=3.2
63ARG UBUNTU_VERSION=20.04
74ARG 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
1210COPY ./app /opt/app/
Original file line number Diff line number Diff line change 1- # Specify the architecture at build time: armv7hf/aarch64
2- # Should be used for getting API image
3- # Currently, only armv7hf is supported
41ARG ARCH=armv7hf
52ARG VERSION=3.2
63ARG UBUNTU_VERSION=20.04
74ARG 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
1210COPY ./app /opt/app/
Original file line number Diff line number Diff 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+
5461Copy the result from the container image to a local directory build:
5562
5663``` bash
You can’t perform that action at this time.
0 commit comments