mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-29 23:22:03 +00:00
Move base images directory to top level
These are standalone, better to have them at the top. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
16
base/mkimage-iso-bios/Dockerfile
Normal file
16
base/mkimage-iso-bios/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM alpine:3.4
|
||||
|
||||
RUN \
|
||||
apk update && apk upgrade && \
|
||||
apk add --no-cache \
|
||||
cdrkit \
|
||||
syslinux \
|
||||
&& true
|
||||
|
||||
WORKDIR /tmp/iso
|
||||
|
||||
COPY isolinux.cfg ./isolinux/
|
||||
|
||||
COPY make-iso /usr/bin
|
||||
|
||||
CMD [ "/usr/bin/make-iso" ]
|
||||
29
base/mkimage-iso-bios/Makefile
Normal file
29
base/mkimage-iso-bios/Makefile
Normal file
@@ -0,0 +1,29 @@
|
||||
.PHONY: tag push
|
||||
|
||||
BASE=alpine:3.4
|
||||
IMAGE=mkimage-iso-bios
|
||||
|
||||
default: push
|
||||
|
||||
hash:
|
||||
DOCKER_CONTENT_TRUST=1 docker pull $(BASE)
|
||||
tar cf - Dockerfile make-iso isolinux.cfg | docker build --no-cache -t $(IMAGE):build -
|
||||
docker run --rm $(IMAGE):build sha1sum /lib/apk/db/installed | sed 's/ .*//' > hash
|
||||
|
||||
push: hash
|
||||
docker pull mobylinux/$(IMAGE):$(shell cat hash) || \
|
||||
(docker tag $(IMAGE):build mobylinux/$(IMAGE):$(shell cat hash) && \
|
||||
docker push mobylinux/$(IMAGE):$(shell cat hash))
|
||||
docker rmi $(IMAGE):build
|
||||
rm -f hash
|
||||
|
||||
tag: hash
|
||||
docker pull mobylinux/$(IMAGE):$(shell cat hash) || \
|
||||
docker tag $(IMAGE):build mobylinux/$(IMAGE):$(shell cat hash)
|
||||
docker rmi $(IMAGE):build
|
||||
rm -f hash
|
||||
|
||||
clean:
|
||||
rm -f hash
|
||||
|
||||
.DELETE_ON_ERROR:
|
||||
5
base/mkimage-iso-bios/isolinux.cfg
Normal file
5
base/mkimage-iso-bios/isolinux.cfg
Normal file
@@ -0,0 +1,5 @@
|
||||
DEFAULT linux
|
||||
LABEL linux
|
||||
KERNEL /vmlinuz64
|
||||
INITRD /initrd.img
|
||||
APPEND earlyprintk=serial console=ttyS0 console=tty1
|
||||
19
base/mkimage-iso-bios/make-iso
Executable file
19
base/mkimage-iso-bios/make-iso
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
# input is a tarball of vmlinuz64 and initrd.img on stdin
|
||||
# output is an iso on stdout
|
||||
|
||||
cp /usr/share/syslinux/isolinux.bin ./isolinux/
|
||||
cp /usr/share/syslinux/ldlinux.c32 ./isolinux/
|
||||
|
||||
tar xf -
|
||||
|
||||
genisoimage -o ../mobylinux-bios.iso -l -J -R \
|
||||
-c isolinux/boot.cat \
|
||||
-b isolinux/isolinux.bin \
|
||||
-no-emul-boot -boot-load-size 4 -boot-info-table \
|
||||
-V MobyLinux .
|
||||
|
||||
isohybrid ../mobylinux-bios.iso
|
||||
|
||||
cat ../mobylinux-bios.iso
|
||||
Reference in New Issue
Block a user