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

Sync with docker acap #63

Merged
merged 16 commits into from
Mar 27, 2024
Merged

Sync with docker acap #63

merged 16 commits into from
Mar 27, 2024

Conversation

madelen-at-work
Copy link
Contributor

@madelen-at-work madelen-at-work commented Mar 20, 2024

Describe your changes

Multiple commits to sync the status of this repo to the docker-acap repo

  • backdown SDK version to be LTS 10.12 compliant
  • combined update of depandabot recommendations
  • Add CONTRIBUTING and .vscode
  • Add command line options to build.sh
  • refactor handling of parameter settings
  • Package settings in a struct and reduce code duplication
  • Check filesystem on subfolder instead of top folder
  • Remove creation of unused exec_root directory
  • Read Boolean parameters with a common function
  • Remove unused error variable
  • Pass around data root in settings struct
  • Remove handling of unknown parameters in callback
  • Centralize restart of dockerd
  • bump Docker Engine to 26.0.0 and Docker Compose to 2.25
  • Add a new parameter to have an option to choose TCP socket creation
  • Pass around SD card area instead of using global constant

(Some tweaks made for the changes to be valid for this repo)

Checklist before requesting a review

  • I have performed a self-review of my own code
  • I have verified that the code builds perfectly fine on my local system
  • I have added tests that prove my fix is effective or that my feature works
  • I have commented my code, particularly in hard-to-understand areas
  • I have verified that my code follows the style already available in the repository
  • I have made corresponding changes to the documentation

@madelen-at-work madelen-at-work requested a review from a team as a code owner March 20, 2024 10:37
killenheladagen and others added 11 commits March 26, 2024 12:58
* Package settings in a struct and reduce code duplication
* Check filesystem on subfolder instead of top folder

* Create folder before checking the filesystem
The default value of /var/run/dockerd, on a tmpfs,
is a much better place for the execution state,
that on a flash drive.
Since 'error' is not passed in to setup_axparameter(), it will not be
set in case setup_axparameter() fails. However, it wasn't possible to
get setup_axparameter() to fail. Both ax_parameter_new() and
ax_parameter_register_callback() are apparently valid to call even
with a non-existing application name.
This restores functionality in commit 774fbf62d726741ad33907c352ac70559b01b358.
* Remove handling of unknown parameters in callback

Callbacks from unknown parameters isn't something that happens,
and if it did, it wouldn't be a big deal anyway.

Removing is a step towards removing global variable 'restart_dockerd'.
* Centralize restart of dockerd

By running g_main_loop_run() in a while-loop, other parts of the
program can retry starting dockerd by simply calling
g_main_loop_quit(). To exit this loop, call quit_program(), which will
also set the global acap_exit_code variable.

This is needed then e.g. axstorage is used to wait for SD card to
become available.

---------

Co-authored-by: Madelen Andersson <madelen.andersson@axis.com>
* bump Docker Engine to 26.0.0 and Docker Compose to 2.25.0
---------

Co-authored-by: madelen-at-work <madelen-at-work@users.noreply.github.com>
* Add a new parameter to have an option to choose TCP socket creation

---------

Co-authored-by: Madelen Andersson <madelen.andersson@axis.com>
* Pass around data root in settings struct

---------

Co-authored-by: madelen-at-work <madelen-at-work@users.noreply.github.com>
@madelen-at-work madelen-at-work merged commit ea59629 into main Mar 27, 2024
12 checks passed
@madelen-at-work madelen-at-work deleted the sync_with_docker_acap branch March 27, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants