STASIS
A pipeline delivery generator
Loading...
Searching...
No Matches
docker.h
Go to the documentation of this file.
1
2#ifndef STASIS_DOCKER_H
3#define STASIS_DOCKER_H
4
5#include "core.h"
6
8#define STASIS_DOCKER_QUIET 1 << 1
9#define STASIS_DOCKER_QUIET_STDOUT 1 << 2
10#define STASIS_DOCKER_QUIET_STDERR 1 << 3
11
13#define STASIS_DOCKER_BUILD 1 << 1
15#define STASIS_DOCKER_BUILD_X 1 << 2
16
18#define STASIS_DOCKER_IMAGE_COMPRESSION "zstd"
19
26
44int docker_capable(struct DockerCapabilities *result);
45
62int docker_exec(const char *args, unsigned flags);
63
87int docker_build(const char *dirpath, const char *args, int engine);
88int docker_script(const char *image, char *args, char *data, unsigned flags);
89int docker_save(const char *image, const char *destdir, const char *compression_program);
90void docker_sanitize_tag(char *str);
91int docker_validate_compression_program(char *prog);
92
93
94#endif //STASIS_DOCKER_H
int docker_exec(const char *args, unsigned flags)
Definition docker.c:4
int docker_capable(struct DockerCapabilities *result)
Definition docker.c:151
int docker_build(const char *dirpath, const char *args, int engine)
Definition docker.c:65
Definition docker.h:20
int podman
Is "docker" really podman?
Definition docker.h:21
int available
Is a "docker" program available?
Definition docker.h:23
int usable
Is docker in a usable state for the current user?
Definition docker.h:24
int build
Is a build plugin available?
Definition docker.h:22