New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VBox guest additions #284

Closed
wants to merge 1 commit into
base: master
from
Jump to file or symbol
Failed to load files and symbols.
+18 −1
Diff settings

Always

Just for now

View
@@ -15,7 +15,8 @@ RUN apt-get update && apt-get -y install unzip \
xorriso \
syslinux \
automake \
pkg-config
pkg-config \
p7zip-full
ENV KERNEL_VERSION 3.15.3
ENV AUFS_BRANCH aufs3.15
@@ -46,6 +47,7 @@ RUN jobs=$(nproc); \
# The post kernel build process
ENV ROOTFS /rootfs
ENV VBOX_VERSION 4.3.12
ENV TCL_REPO_BASE http://tinycorelinux.net/5.x/x86
ENV TCZ_DEPS iptables \
iproute2 \
@@ -101,6 +103,18 @@ RUN cd /linux-kernel && \
DESTDIR=$ROOTFS make install && \
rm -rf /tmp/kheaders
# Build VBox guest additions
RUN mkdir -p /vboxguest && \
cd /vboxguest && \
curl -L -o vboxguest.iso http://download.virtualbox.org/virtualbox/${VBOX_VERSION}/VBoxGuestAdditions_${VBOX_VERSION}.iso && \
7z x vboxguest.iso -ir'!VBoxLinuxAdditions.run' && \
sh VBoxLinuxAdditions.run --noexec --target . && \
mkdir x86 && cd x86 && tar xvjf ../VBoxGuestAdditions-x86.tar.bz2 && cd .. && \
mkdir amd64 && cd amd64 && tar xvjf ../VBoxGuestAdditions-amd64.tar.bz2 && cd .. && \
cd amd64/src/vboxguest-${VBOX_VERSION} && KERN_DIR=/linux-kernel/ make && cd ../../.. && \
cp amd64/src/vboxguest-${VBOX_VERSION}/*.ko $ROOTFS/lib/modules/$KERNEL_VERSION-tinycore64 && \
mkdir -p $ROOTFS/sbin && cp x86/lib/VBoxGuestAdditions/mount.vboxsf $ROOTFS/sbin/
# Download the rootfs, don't unpack it though:
RUN curl -L -o /tcl_rootfs.gz $TCL_REPO_BASE/release/distribution_files/rootfs.gz
@@ -112,6 +126,9 @@ RUN for dep in $TCZ_DEPS; do \
rm -f /tmp/$dep.tcz ;\
done
# Make sure that all the modules we might have added are recognized
RUN depmod -a -b $ROOTFS $KERNEL_VERSION-tinycore64
COPY VERSION $ROOTFS/etc/version
# Get the Docker version that matches our boot2docker version
ProTip! Use n and p to navigate between commits in a pull request.