Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/docker update #59

Merged
merged 17 commits into from
Nov 13, 2024

Conversation

khancyr
Copy link
Contributor

@khancyr khancyr commented Nov 13, 2024

Reduce docker intermediate layer size
Improve rebuild with COPY --link
Add ccache cache usage for gstreamer build

improve shell scripts syntax and add linter
add linter for Dockerfile

enable linters checks on CI

@@ -267,9 +267,9 @@ EOF
fi

GST_BUILD_DIR=builddir
meson setup ${GST_MESON_OPTIONS[@]} $GST_BUILD_DIR
meson setup "$GST_BUILD_DIR" "${GST_MESON_OPTIONS[@]}"
Copy link
Member

@joaoantoniocardoso joaoantoniocardoso Nov 13, 2024

Choose a reason for hiding this comment

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

Does this work? The help says meson setup [args] [builddir] [sourcedir]

Copy link
Member

Choose a reason for hiding this comment

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

The CI is green, maybe we should add tests to ensure the gst installation ?

Copy link
Member

@joaoantoniocardoso joaoantoniocardoso Nov 13, 2024

Choose a reason for hiding this comment

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

From the logs, meson receives those parameters correctly, so that works.

Regarding tests, we do have some tests to ensure (some) plugins are installed with no missing dynamic libraries in the inspect_gst_plugins.sh script.

Copy link
Member

Choose a reason for hiding this comment

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

That's true, forgot about those

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ha... The documents I read got the the parameters in the other order... I didnt' double check with the version used so maybe I am wrong on this.
It was building thus

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@joaoantoniocardoso meson docs is a bit confusing about this but on current version the syntax is this one.
The documentation example also state this on hints : https://mesonbuild.com/Running-Meson.html#configuring-the-build-directory
So it should be good

@patrickelectric patrickelectric merged commit 2076fbb into bluerobotics:master Nov 13, 2024
3 checks passed
@khancyr khancyr deleted the feature/docker-update branch November 13, 2024 20:46
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.

3 participants