https://github.com/queer/app-image-converter
A little CLI that converts Dockerfiles into more-interesting things
https://github.com/queer/app-image-converter
Last synced: about 1 year ago
JSON representation
A little CLI that converts Dockerfiles into more-interesting things
- Host: GitHub
- URL: https://github.com/queer/app-image-converter
- Owner: queer
- Created: 2022-12-10T19:37:05.000Z (over 3 years ago)
- Default Branch: mistress
- Last Pushed: 2022-12-10T19:44:26.000Z (over 3 years ago)
- Last Synced: 2025-03-10T14:55:41.487Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 43 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# converter
A little CLI that converts Dockerfiles. Takes in a directory containing a
Dockerfile and necessary files for building, and produces:
- A Docker image on your system
- A tarball of the Docker image export (`docker save ...`)
- A tarball of the filesystem of the Docker image
- Multiple ext4 images of the Docker image's filesystem:
- Plain ext4
- OverlayFS-compatible ext4
- VHD-compatible EXT4
## Building
```bash
$ go build .
# now copy ./converter somewhere
```
## Usage
```bash
$ ./converter --image hello-world
[...]
$ ls
[...]
# ext4 image
hello-world.ext4
# VHD-compatible ext4 image
hello-world.ext4.vhd
# Output of docker save ...
hello-world.image.tar
# OverlayFS-compatible ext4 image
hello-world.overlayfs.ext4
# Flat tarball of the image contents
hello-world.tar
[...]
```
## TODO (maybe)
- Buildpack support: https://pkg.go.dev/github.com/buildpacks/lifecycle#Builder
- Nixpacks support?: https://github.com/railwayapp/nixpacks