Skip to content

Gao-OS/flake-docker-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

flake-docker-utils

Requirements:

flake-docker-utils

flake-docker-utils is a library that provides the following functions:

flake-docker-utils.lib.allImages

Example:

dockerImage = pkgs.dockerTools.buildImage { ... };

allImages = flake-docker-utils.lib.allImages [ "x86_64-linux" "aarch64-linux" ] dockerImage;

Type allImages :: [String] -> Derivation -> Derivation

Description:

Builds a symbolic link farm for all systems to cross-compiled docker images.

flake-docker-utils.lib.pushAll

Example:

system = "x86_64-linux";

dockerImage = pkgs.dockerTools.buildImage { ... };

pushAll = flake-docker-utils.lib.${system}.pushAll {
  name = "pushAll";
  systems = [ "x86_64-linux" "aarch64-linux" ];
  inherit dockerImage;
};

Type pushAll :: AttrSet {String, [String], Derivation} -> Derivation

Description:

Creates a script to push all images created with allImages using docker manifest. pushAll uses the docker image's tag to tag every image as ${tag}-${system} and then includes them in a manifest with tag as the manifest head.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages