![]() |
STASIS
A pipeline delivery generator
|
#include "core.h"
Go to the source code of this file.
Data Structures | |
| struct | DockerCapabilities |
Macros | |
| #define | STASIS_DOCKER_QUIET 1 << 1 |
| Flag to squelch output from docker_exec(). | |
| #define | STASIS_DOCKER_QUIET_STDOUT 1 << 2 |
| #define | STASIS_DOCKER_QUIET_STDERR 1 << 3 |
| #define | STASIS_DOCKER_BUILD 1 << 1 |
| Flag for older style docker build. | |
| #define | STASIS_DOCKER_BUILD_X 1 << 2 |
| Flag for docker buildx. | |
| #define | STASIS_DOCKER_IMAGE_COMPRESSION "zstd" |
| Compress "docker save"ed images with a compression program. | |
Functions | |
| int | docker_capable (struct DockerCapabilities *result) |
| int | docker_exec (const char *args, unsigned flags) |
| int | docker_build (const char *dirpath, const char *args, int engine) |
| int | docker_script (const char *image, char *args, char *data, unsigned flags) |
| int | docker_save (const char *image, const char *destdir, const char *compression_program) |
| void | docker_sanitize_tag (char *str) |
| int | docker_validate_compression_program (char *prog) |
| int docker_build | ( | const char * | dirpath, |
| const char * | args, | ||
| int | engine ) |
Build a docker image
| dirpath | |
| args | |
| engine |
| int docker_capable | ( | struct DockerCapabilities * | result | ) |
Determine the state of docker on the system
| result | DockerCapabilities struct |

| int docker_exec | ( | const char * | args, |
| unsigned | flags ) |
Execute a docker command
Use the STASIS_DOCKER_QUIET flag to suppress all output from stdout and stderr.
| args | arguments to pass to docker |
| flags |