Skip to content

CVS-187613_fix_c_api_demo#4252

Open
ngrozae wants to merge 1 commit into
mainfrom
CVS-187613_fix_c_api_demo
Open

CVS-187613_fix_c_api_demo#4252
ngrozae wants to merge 1 commit into
mainfrom
CVS-187613_fix_c_api_demo

Conversation

@ngrozae
Copy link
Copy Markdown
Collaborator

@ngrozae ngrozae commented May 28, 2026

🛠 Summary

CVS-187613 fix c_api_minimal_app demo

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

Copilot AI review requested due to automatic review settings May 28, 2026 08:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the c_api_minimal_app demo packaging/extraction flow to use the uncompressed ovms.tar artifact (as produced inside the -pkg image) instead of ovms.tar.gz, aiming to fix the demo build when sourcing artifacts from the Docker packaging image.

Changes:

  • Switch from_docker extraction in the demo Makefile to retrieve ovms.tar (not ovms.tar.gz).
  • Update Ubuntu and Red Hat demo Dockerfiles to COPY/extract ovms.tar.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
demos/c_api_minimal_app/Makefile Adjusts Docker-based artifact extraction to use ovms.tar.
demos/c_api_minimal_app/capi_files/Dockerfile.ubuntu Updates demo image build to copy/extract ovms.tar.
demos/c_api_minimal_app/capi_files/Dockerfile.redhat Updates demo image build to copy/extract ovms.tar.

Comment on lines 45 to +46
docker run $(OVMS_CPP_DOCKER_IMAGE)-pkg:$(OVMS_CPP_IMAGE_TAG) bash -c \
"tar -c -C /ovms_pkg/$(BASE_OS) ovms.tar.gz ; sleep 2" | tar -x -C capi/$(DIST_OS)/ && cd ../../
"tar -c -C /ovms_pkg/$(BASE_OS) ovms.tar ; sleep 2" | tar -x -C capi/$(DIST_OS)/ && cd ../../
Comment on lines +25 to +26
COPY ovms.tar /
RUN tar -xf ovms.tar
Comment on lines +22 to +24
COPY ovms.tar /
RUN env
RUN tar -xf ovms.tar.gz
RUN tar -xf ovms.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants