{"repo":"awakesecurity/hocker","free":true,"listed":false,"github":"https://github.com/awakesecurity/hocker","clone":"git clone https://github.com/awakesecurity/hocker.git","description":"Utilities for interacting with the docker registry and generating nix build instructions","language":"Haskell","stars":128,"topics":["haskell","docker","docker-registry","docker-registry-v2","nix","nixos","nixpkgs","command-line","library"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"Welcome! The hocker package provides a small set of utilities to fetch docker image artifacts from docker registries and produce Nix derivations marrying docker and Nix elegantly: - hocker-image for fetching a docker image - hocker-layer for fetching a docker image's layers - hocker-config for fetching a docker image's configuration JSON - hocker-manifest for fetching a docker registry image manifest - docker2nix for generating Nix expressions calling the fetchdocker derivations, given a docker registry image manifest These tools only work with version 2 of the docker registry and docker ( =) v1.10 . The motivation for this tool came from a need to fetch docker image artifacts from a docker registry without the stock docker tooling designed to only work with the docker daemon. Our use case (and the reason why this package exposes a docker2nix tool) is pulling docker images into a NixOS system's store and loading those images from the store into the docker daemon running on that same system. We desired this for two critical reasons: 1. The docker daemon no longer required an internet connection in order to load the docker images 2. By virtue of fetching the docker images at build-time as opposed to run-time, failures from non-existent images or image tags are caught earlier We strived to make this tool useful outside of the context of Nix and NixOS, therefore all of these tools are usable without Nix in the workflow. For high-level documentation of each utility, please refer t","default_branch":null,"files":null,"tree":[],"storefront":"/r/awakesecurity","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/awakesecurity/hocker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}