Sign inSign up

necrose99/custom-alpine-builder

By necrose99

•Updated over 6 years ago

https://github.com/necrose99/gentoo-docker-images/blob/master/custom-alpine-builder/README.md

Image
0

233

necrose99/custom-alpine-builder repository overview

FROM alpine:latest RUN apk add squashfs-tools p7zip xz tar bzip2

## from gentoo's ---- {ARG BOOTSTRAP FROM ${BOOTSTRAP:-alpine:3.7} as builder

WORKDIR /gentoo } https://raw.githubusercontent.com/gentoo/gentoo-docker-images/master/stage3.Dockerfile

⁠i'm just swaping alpine to this so builder has the few required build toys.

I needed a multistage builder with just a few extra tools ie unzip /unsquash craps.

Like Live Cd iso's etc..

in my use case Gentoo Varriants.. for now i've stuck here. (you could use to bisect your live cd for hacking ie gentoo live resecue dvd with more utils ie dying hard drive and forensic recover tools etc.. )

WORKDIR /gentoo ie needing the epherial chroot of docker and or means of tweaking iso more to my liking woithout a hudge mess. on system or lots of leftovers to clean out and or mounting Host:/packages to docker volume.
if emerge cool-new-toy @ system epic fail......> /he's dead dead Jim ,not fun so why not docker makes the best victim.. can run /bin/bash in docker shell do my building etc..

IE https://www.pentoo.ch/isos/latest-iso-symlinks/⁠

add ios /sometemp

7z x /sometemp/my.iso / rm *.trashes...

⁠unsquashfs -f -d /mydistro /sometemp/file.squashfs

clean out lzm / squash after unpacked to /gentoo or /tmproot

next from push /mydistro / wala

``FROM scratch

WORKDIR / COPY --from=builder /gentoo/ / CMD ["/bin/bash"]``

RUN USE="features" emerge my-add-on-pkgs wala ... ie binutils with use=mutiarch so Crosscompiles suck less. or pch in gcc etc etc..

in pentoos case can add toys from rust like badtouch etc to live iso..

Tag summary

Content type

Image

Digest

Size

7.7 MB

Last updated

over 6 years ago

docker pull necrose99/custom-alpine-builder