test
This commit is contained in:
@@ -3,8 +3,3 @@ FROM $BUILD_FROM
|
|||||||
|
|
||||||
# Copy root filesystem
|
# Copy root filesystem
|
||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
|
|
||||||
# Install vhclient
|
|
||||||
ARG BUILD_ARCH
|
|
||||||
ARG CACHEBUST=1
|
|
||||||
RUN /usr/bin/getvhclient $BUILD_ARCH
|
|
||||||
|
|||||||
@@ -2,3 +2,15 @@
|
|||||||
|
|
||||||
/sbin/modprobe -s vhci-hcd
|
/sbin/modprobe -s vhci-hcd
|
||||||
mount -o remount -t sysfs sysfs /sys
|
mount -o remount -t sysfs sysfs /sys
|
||||||
|
|
||||||
|
VHCLIENT_BASE_URL=https://www.virtualhere.com/sites/default/files/usbclient
|
||||||
|
case "$BUILD_ARCH" in \
|
||||||
|
armhf) export VHCLIENT="vhclientarmhf";; \
|
||||||
|
aarch64) export VHCLIENT="vhclientarm64";; \
|
||||||
|
amd64) export VHCLIENT="vhclientx86_64";; \
|
||||||
|
i386) export VHCLIENT="vhclienti386";; \
|
||||||
|
*) exit 1;; \
|
||||||
|
esac
|
||||||
|
echo "Downloading latest version of client:" $VHCLIENT_BASE_URL/$VHCLIENT
|
||||||
|
curl -sSLf -o /usr/bin/vhclient $VHCLIENT_BASE_URL/$VHCLIENT
|
||||||
|
chmod a+x /usr/bin/vhclient
|
||||||
|
|||||||
Reference in New Issue
Block a user