allgreed / drone-load-and-store

load, tag and push a Docker image in unprivileged, containerized environment, also: a Drone plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

drone-load-and-store

load, tag and push a Docker image in unprivileged, containerized environment, also: a Drone plugin

Prerequisites

  • nix
  • direnv (nix-env -i direnv)

Hint: if something doesn't work because of missing package please add the package to default.nix instead of installing on your computer. Why solve the problem for one if you can solve the problem for all? ;)

One-time setup

make init

Everything

make help

High level goals

  • must work with Drone cloud (so no privilaged features)
  • should mimic the API of the default Docker plugin
  • rewrite from bash to some real programming language is fine as long as the code and build process is kept simple

TODO:

  • build with nix (and from scratch)
  • maybe add shellcheck as lint? :D
  • add a testing suite that takes a sample image and pushes it to controlled instance of docker registry
  • make a propper CI
  • better error messages

About

load, tag and push a Docker image in unprivileged, containerized environment, also: a Drone plugin

License:MIT License


Languages

Language:Makefile 60.7%Language:Shell 35.9%Language:Dockerfile 3.4%