Closed CoolBassist closed 2 months ago
What firmware version are you targetting?
I experienced something similar with the axevent API and if I remember correctly I concluded that on versions prior to around 11.5 one has to use the sdk user, and on later firmwares one has use dynamic users. Not sure if this is the best page for explaining it, but it does talk about the difference.
Hi @CoolBassist , thanks for reaching out!
I have noticed that trying to execute some of the examples from the "acap-native-sdk-examples" repo require some extra editing to get working.
When you say executing, do you mean building the Docker container image with the following command?
docker build --tag <APP_IMAGE> .
If you mean that you had to replace the four last lines in axstorage Dockerfile, that is the here-documents (or heredocs) syntax (set on the first line with # syntax=docker/dockerfile:1
) and it sounds like it could be that your Docker environment doesn't support it by default.
I do however think that Docker 24.04 should have support for it. You can test to set this environment variable in connection to build.
DOCKER_BUILDKIT=1 docker build --tag <APP_IMAGE> .
and/or you can build with buildx
docker buildx build --tag <APP_IMAGE> .
Describe the bug
I have noticed that trying to execute some of the examples from the "acap-native-sdk-examples" repo require some extra editing to get working. For example, download the files from the "axserial" example, and then follow the instructions exactly. When I did this, it just simply copied the files from
./app
to./build
. To fix this I needed to edit the last line of the docker file to this :-RUN . /opt/axis/acapsdk/environment-setup* && acap-build .
Another example is the "axStorage" example. When running it, I had the following error in the appLog.
To solve this, I had to remove the "resources" object from the manifest, and instead use the "user" object with values of "sdk".
To reproduce
Download all files from a repo such as "axSerial", then follow the instructions exactly.
Environment
WSL: Ubuntu 22.04 Docker version 24.0.7, build 24.0.7-0ubuntu2~22.04.1