mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 22:31:20 +00:00
The Ubuntu mainline PPA has kernel.org based kernels for many kernel releaseis. This commit adds suport for downloading and converting the 3.16.x long long term support kernel as well as the current 4.x series. The "mainline.sh" script only downloads/processes kernels which have not yet been put on Hub. The kernels are stored under "linuxkit/kernel-mainline" and are tagged with the kernel version. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
25 lines
629 B
Docker
25 lines
629 B
Docker
FROM alpine:3.5 AS extract
|
|
|
|
ARG DEB_URLS
|
|
|
|
RUN apk add --no-cache curl dpkg tar && true
|
|
WORKDIR /deb
|
|
RUN mkdir extract
|
|
RUN for url in ${DEB_URLS}; do \
|
|
echo "Extracting: $url"; \
|
|
curl -fsSL -o dl.deb $url && \
|
|
dpkg-deb -x dl.deb . ;\
|
|
done
|
|
|
|
RUN mkdir /out
|
|
RUN cp -a boot/vmlinuz-* /out/kernel
|
|
RUN cp -a boot/config-* /out/kernel_config
|
|
RUN tar cf /out/kernel.tar lib
|
|
RUN tar cf /out/kernel-dev.tar usr
|
|
|
|
FROM linuxkit/toybox-media:d7e82a7d19ccc84c9071fa7a88ecaa58ae958f7c@sha256:4c7d25f2be2429cd08417c36e04161cb924e46f3e419ee33a0aa9ff3a0942e02
|
|
WORKDIR /
|
|
ENTRYPOINT []
|
|
CMD []
|
|
COPY --from=extract /out/* /
|