mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
download-kernel
This commit is contained in:
parent
6d5641db75
commit
9255eb4c57
|
@ -11,4 +11,6 @@ RUN apt-get update && apt-get install -y \
|
|||
|
||||
WORKDIR /usr/src
|
||||
|
||||
ENTRYPOINT [ "bash" ]
|
||||
COPY ./download-kernel /usr/local/bin/download-kernel
|
||||
|
||||
CMD [ "bash" ]
|
||||
|
|
10
kernel-builder/download-kernel
Executable file
10
kernel-builder/download-kernel
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
VERSION=$1
|
||||
|
||||
if [[ -z $VERSION ]]; then
|
||||
echo "Please specify a kernel version."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
curl -sSL https://www.kernel.org/pub/linux/kernel/v3.x/linux-${VERSION}.tar.xz | tar -v -C /usr/src -xJ
|
Loading…
Reference in New Issue
Block a user