copatcher

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

README

copatcher

Build Status codecov Go Report Card License Tag

Introduction

copatcher is a container patcher written in Go.

Prerequisites

  • Go >= 1.18.0

Install

curl -LO https://storage.googleapis.com/container-diff/latest/container-diff-linux-amd64
sudo install container-diff-linux-amd64 /usr/local/bin/container-diff

Run

container-diff diff --type=apt --type=node --type=pip --json daemon://image1 daemon://image2 > diff.json

version=latest make build
./bin/copatcher --container-diff=diff.json --output-file=Dockerfile

Usage

usage: copatcher --container-diff=CONTAINER-DIFF --output-file=OUTPUT-FILE [<flags>]

Container patcher


Flags:
  --[no-]help                Show context-sensitive help (also try --help-long and --help-man).
  --[no-]version             Show application version.
  --container-diff=CONTAINER-DIFF
                             Container difference (.json)
  --output-file=OUTPUT-FILE  Output file (Dockerfile)

Example

container-diff diff --type=apt --type=node --type=pip --json daemon://ubuntu:22.04 daemon://ubuntu:23.04 > diff.json
copatcher --container-diff=diff.json --output-file=Dockerfile

License

Project License can be found here.

Reference

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL