Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| da1fb2ae17 | |||
| 8a2713bd3b | |||
| 5b65b37d81 | |||
| d806f056f3 | |||
| ec89ce64bd | |||
| 91b3730f0c | |||
| db45af6b9d | |||
|
|
f0bebff6a1 |
4
Makefile
4
Makefile
@@ -1,4 +1,4 @@
|
|||||||
SCRIPTS = $(shell awk '/#!\/bin\/(ba)?sh/&&FNR==1{print FILENAME}' $(shell git ls-files))
|
SCRIPTS = $(shell awk '/#!\/usr\/bin\/env (ba)?sh/&&FNR==1{print FILENAME}' $(shell git ls-files))
|
||||||
GODEPS = $(shell git ls-files '*.go' go.mod go.sum)
|
GODEPS = $(shell git ls-files '*.go' go.mod go.sum)
|
||||||
|
|
||||||
VSN ?= $(shell git describe --dirty)
|
VSN ?= $(shell git describe --dirty)
|
||||||
@@ -14,7 +14,7 @@ test: coverage.out
|
|||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint:
|
||||||
go vet ./...
|
go vet ./...
|
||||||
$(shell go env GOPATH)/bin/staticcheck -f stylish ./...
|
staticcheck -f stylish ./...
|
||||||
shellcheck $(SCRIPTS)
|
shellcheck $(SCRIPTS)
|
||||||
|
|
||||||
.INTERMEDIATE: coverage.out
|
.INTERMEDIATE: coverage.out
|
||||||
|
|||||||
16
README.md
16
README.md
@@ -5,6 +5,15 @@ Undocker
|
|||||||
|
|
||||||
Converts a Docker image (a bunch of layers) to a flattened "rootfs" tarball.
|
Converts a Docker image (a bunch of layers) to a flattened "rootfs" tarball.
|
||||||
|
|
||||||
|
Project Status
|
||||||
|
--------------
|
||||||
|
|
||||||
|
The project was announced to be deprecated in the beginning of 2024, but the
|
||||||
|
maintainer has an interest in Docker ecosystem again, thus will maintain it
|
||||||
|
somewhat starting at mid-2024.
|
||||||
|
|
||||||
|
The author has some significant changes in mind, but the timeline is unknown.
|
||||||
|
|
||||||
Why?
|
Why?
|
||||||
----
|
----
|
||||||
|
|
||||||
@@ -79,13 +88,6 @@ Similar Projects
|
|||||||
|
|
||||||
* [rootfs_builder](https://github.com/ForAllSecure/rootfs_builder)
|
* [rootfs_builder](https://github.com/ForAllSecure/rootfs_builder)
|
||||||
|
|
||||||
Changelog
|
|
||||||
---------
|
|
||||||
|
|
||||||
**v1.0**
|
|
||||||
|
|
||||||
* initial release: `rootfs.Flatten` and a simple command-line application.
|
|
||||||
|
|
||||||
Contributions
|
Contributions
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -43,7 +43,7 @@ func main() {
|
|||||||
|
|
||||||
c := &command{flattener: rootfs.Flatten, Stdout: os.Stdout}
|
c := &command{flattener: rootfs.Flatten, Stdout: os.Stdout}
|
||||||
if err := c.execute(os.Args[1], os.Args[2]); err != nil {
|
if err := c.execute(os.Args[1], os.Args[2]); err != nil {
|
||||||
fmt.Printf("Error: %v\n", err)
|
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
|
|||||||
4
release
4
release
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
_err(){ >&2 echo "ERROR: $*"; exit 1; }
|
_err(){ >&2 echo "ERROR: $*"; exit 1; }
|
||||||
@@ -22,4 +22,4 @@ last_tag=$(git tag | tail -1)
|
|||||||
echo
|
echo
|
||||||
echo Changelog since "$last_tag":
|
echo Changelog since "$last_tag":
|
||||||
git log --pretty=format:"- [%an] %s" "$last_tag"..HEAD
|
git log --pretty=format:"- [%an] %s" "$last_tag"..HEAD
|
||||||
} | git tag -u motiejus@jakstys.lt -F - "$1"
|
} | git tag -F - "$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user