aboutsummaryrefslogtreecommitdiff
path: root/src/docker.c
Commit message (Collapse)AuthorAgeFilesLines
* Rebrand OhMyCal (OMC) as STASIS (#7)Joseph Hunkeler2024-06-211-11/+11
|
* Unit tests (#6)Joseph Hunkeler2024-06-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial commit of unit tests [WIP] * Address shortcomings and bugs flushed out by unit tests * Enable unit testing in CI workflow * Enable verbose ctests * Handle lack of __FILE_NAME__ define * Only podman support `run --arch` argument * Skip docker build testing if CI system cannot pull an image * Remove errant call to puts() * Identify local repo user * Fix missing xmllint * NULL terminate arrays * Fix filename assignment in is_url mode * Break loop when expected lines are exhausted * strcmp_array expects NULL terminated array. Iterating by size in this case passes NULL to strcmp leading to an invalid read * Remove debug printf statements * Disable a few warnings for tests * Workaround for ctest junit xml truncation * Update checkout@v4 * Prevent false-positive result * Return zero on error * Fix strlist_remove function * Value argument can be constant * Fix test to match changes to startswith and endswith * Add test_ini.c * Fix redaction code to accept NULL pointers in array * And let the caller specify the length of the array of strings to redact. * Redactions now occur directly on authentication strings rather than their command line arguments * Fix BUILD_TESTING_DEBUG * Adds missing -D argument
* Fix leaky file handleJoseph Hunkeler2024-04-101-2/+6
|
* docker_script flags argument is remains unused, for now.Joseph Hunkeler2024-04-101-0/+1
|
* Add docker_validate_image_compression()Joseph Hunkeler2024-04-101-0/+17
|
* Add docker_sanitize_tag()Joseph Hunkeler2024-04-101-0/+12
| | | | * Replace invalid docker tag characters with dash ('-')
* Bug: Fix docker build flag assignmentsJoseph Hunkeler2024-04-101-2/+2
|
* Free tempfile bufferJoseph Hunkeler2024-03-221-1/+3
|
* Use do/while in guard_* macros to make them behave more like functionsJoseph Hunkeler2024-03-101-1/+1
|
* docker_save function will pipe output of "docker save" to a compression ↵Joseph Hunkeler2024-03-061-2/+22
| | | | program if requested
* docker_script function now returns exit code from processJoseph Hunkeler2024-03-061-7/+14
| | | | * Pipe buffer is zeroed each iteration
* emit "Executing: [cmd]" when OMC_DOCKER_QUIET flag is not presentJoseph Hunkeler2024-03-061-1/+3
|
* xmkstemp allow setting file modeJoseph Hunkeler2024-03-041-1/+1
| | | | * add usage comment function
* Initial commit of docker integration codeJoseph Hunkeler2024-02-231-0/+139