1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-21 01:27:01 +02:00

open-vmdk

This commit is contained in:
kev 2024-11-07 17:55:06 +08:00
parent 5cef656227
commit 6a21d75f56
3 changed files with 41 additions and 0 deletions

View File

@ -157,6 +157,7 @@ A collection of delicious docker recipes.
- [x] dbatools
- [x] jinjanator
- [x] open-vmdk
- [x] registry-cli
- [x] tldextract

21
open-vmdk/Dockerfile Normal file
View File

@ -0,0 +1,21 @@
#
# Dockerfile for open-vmdk
#
FROM debian:12
MAINTAINER EasyPi Software Foundation
ARG OPEN_VMDK_VERSION=v0.3.10
ARG OPEN_VMDK_URL=https://github.com/vmware/open-vmdk/archive/refs/tags/$OPEN_VMDK_VERSION.tar.gz
RUN set -xe \
&& apt update -y \
&& apt install -y build-essential curl zlib1g-dev \
&& mkdir -p open-vmdk \
&& cd open-vmdk \
&& curl -sSL $OPEN_VMDK_URL | tar xz --strip 1 \
&& make \
&& make install \
&& cd .. \
&& apt remove -y build-essential curl zlib1g-dev \
&& rm -rf open-vmdk /var/lib/apt/lists/*

19
open-vmdk/README.md Normal file
View File

@ -0,0 +1,19 @@
open-vmdk
=========
[Open VMDK][1] is an assistant tool for creating Open Virtual Appliance (OVA).
## Tutorial
```bash
# create aliases
$ alias vmdk-convert='docker run --rm -u $(id -u):$(id -g) -v $PWD:/data -w /data vimagick/open-vmdk vmdk-convert'
$ alias ova-compose='docker run --rm -u $(id -u):$(id -g) -v $PWD:/data -w /data vimagick/open-vmdk ova-compose'
# convert raw image
$ wget https://downloads.openwrt.org/releases/23.05.5/targets/x86/64/openwrt-23.05.5-x86-64-generic-ext4-combined.img.gz
$ gunzip openwrt-23.05.5-x86-64-generic-ext4-combined.img.gz
$ vmdk-convert openwrt-23.05.5-x86-64-generic-ext4-combined.img openwrt-23.05.5-x86-64-generic-ext4-combined.vmdk
```
[1]: https://github.com/vmware/open-vmdk