Aktualizr
C++ SOTA Client
Public Member Functions | Public Attributes | List of all members
DockerApp Struct Reference

This package manager compliments the OSTreePackageManager by also including optional Docker Apps. More...

Collaboration diagram for DockerApp:
[legend]

Public Member Functions

 DockerApp (std::string app_name, const DockerAppManagerConfig &config)
 
bool render (const std::string &app_content, bool persist)
 
bool fetch ()
 
bool start ()
 
void remove ()
 

Public Attributes

std::string name
 
boost::filesystem::path app_root
 
boost::filesystem::path app_params
 
boost::filesystem::path app_bin
 
boost::filesystem::path compose_bin
 

Detailed Description

This package manager compliments the OSTreePackageManager by also including optional Docker Apps.

A full description of the Docker App project can be found here: https://github.com/docker/app/

NOTE: This implementation is based on the <= 0.8 versions of Docker App that included a "standalone" command mode.

Docker Apps are very analogous to docker-compose. In fact, this module currently "renders" the docker-app file into a docker-compose file. Each Docker App appears as a Target in the TUF targets list. Each OSTree target can then reference these docker apps in its custom data section. eg:

"targets": { httpd.dockerapp-1 : { "custom" : {"hardwareIds" : ["all"], "name" : "httpd.dockerapp", "version" : "1"}, "hashes" : {"sha256" : "f0ad4e3ce6a5e9cb70c9d747e977fddfacd08419deec0714622029b12dde8338"}, "length" : 889 }, "raspberrypi3-64-lmp-144" : { "custom" : { "docker_apps" : { "httpd" : { "filename" : "httpd.dockerapp-1" } }, "hardwareIds" : ["raspberrypi3-64"], "name" : "raspberrypi3-64-lmp", "targetFormat" : "OSTREE", "version" : "144" }, "hashes" : {"sha256" : "20ac4f7cd50cda6bfed0caa1f8231cc9a7e40bec60026c66df5f7e143af96942"}, "length" : 0 } }

Definition at line 44 of file dockerapp_standalone.cc.


The documentation for this struct was generated from the following file: