Skip to content

Commit 0ec36a7

Browse files
isak-jakobssonpataxis
authored andcommitted
Remove armv7hf for container-example
1 parent f777461 commit 0ec36a7

File tree

3 files changed

+18
-29
lines changed

3 files changed

+18
-29
lines changed

.github/workflows/container-example.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ jobs:
1313
strategy:
1414
matrix:
1515
include:
16-
- arch: armv7hf
17-
platformarch: "linux/arm/v7"
18-
axis-os: 11.11.70
1916
- arch: aarch64
2017
platformarch: "linux/arm64/v8"
21-
axis-os: 11.11.70
18+
axis-os: 12.0.89
2219
env:
2320
EXREPO: acap-native-examples
2421
EXNAME: container-example
@@ -33,7 +30,7 @@ jobs:
3330
run: |
3431
docker image rm -f $imagetag
3532
cd $EXNAME
36-
docker pull --platform=${{ matrix.platformarch}} alpine:$alpinetag
33+
docker pull --platform=${{ matrix.platformarch }} alpine:$alpinetag
3734
docker save -o alpine.tar alpine:$alpinetag
3835
docker build --no-cache --tag $imagetag --build-arg ARCH=${{ matrix.arch }} .
3936
docker cp $(docker create $imagetag):/opt/app ./build

container-example/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG ARCH=armv7hf
3+
ARG ARCH=aarch64
44
ARG VERSION=1.15
55
ARG UBUNTU_VERSION=22.04
66
ARG REPO=axisecp

container-example/README.md

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -98,38 +98,31 @@ Standing in your working directory run the following commands:
9898
> https://docs.docker.com/network/proxy and a
9999
> [script for Axis devices](https://axiscommunications.github.io/acap-documentation/docs/develop/build-install-run.html#configure-network-proxy-settings) in the ACAP documentation.
100100
101-
##### Build the application for armv7hf
102-
103-
Pull the [Alpine linux container image][alpine] for armv7hf and save it to a
104-
.tar file, then build the application:
101+
Pull the [Alpine linux container image][alpine] and save it to a .tar file.
105102

106103
```sh
107-
docker pull --platform="linux/arm/v7" alpine:3.19.1
104+
docker pull --platform="linux/arm64/v8" alpine:3.19.1
108105
docker save -o alpine.tar alpine:3.19.1
109-
docker build --build-arg ARCH=armv7hf --tag container-example:armv7hf .
110-
docker cp $(docker create container-example:armv7hf):/opt/app ./build-armv7hf
106+
````
107+
108+
Build the application:
109+
110+
```sh
111+
docker build --tag <APP_IMAGE> .
111112
```
112113

113-
##### Build the application for aarch64
114+
`<APP_IMAGE>` is the name to tag the image with, e.g., `container-example:1.0`.
114115

115-
Pull the [Alpine linux container image][alpine] for aarch64 and save it to a
116-
.tar file, then build the application:
116+
Copy the result from the container image to a local directory `build`:
117117

118118
```sh
119-
docker pull --platform="linux/arm64/v8" alpine:3.19.1
120-
docker save -o alpine.tar alpine:3.19.1
121-
docker build --build-arg ARCH=aarch64 --tag container-example:aarch64 .
122-
docker cp $(docker create container-example:aarch64):/opt/app ./build-aarch64
119+
docker cp $(docker create <APP_IMAGE>):/opt/app ./build
123120
```
124121

125-
##### Extract the application
126-
127-
The `build-armv7hf` and `build-aarch64` directories contain the build
128-
artifacts, where the ACAP application is found with suffix `.eap`, depending on
129-
which SDK architecture that was chosen, one of these files should be found:
122+
The `build` directory contains the build artifacts, where the ACAP
123+
application is found with suffix `.eap`. This file should be found:
130124

131-
- `Container_Example_1_0_0_aarch64.eap`
132-
- `Container_Example_1_0_0_armv7hf.eap`
125+
- `Container_Example_1_0_0_aarch64.eap`.
133126

134127
#### Install your application
135128

@@ -142,9 +135,8 @@ http://<AXIS_DEVICE_IP>/index.html#apps
142135
- Click on the tab `Apps` in the device GUI
143136
- Enable `Allow unsigned apps` toggle
144137
- Click `(+ Add app)` button to upload the application file
145-
- Browse to the newly built ACAP application, depending on architecture:
138+
- Browse to the newly built ACAP application:
146139
- `Container_Example_1_0_0_aarch64.eap`
147-
- `Container_Example_1_0_0_armv7hf.eap`
148140
- Click `Install`
149141
- Run the application by enabling the `Start` switch
150142

0 commit comments

Comments
 (0)