Skip to content

Commit

Permalink
Merge pull request #43 from WDCommunity/docker
Browse files Browse the repository at this point in the history
Docker 19.03.2
  • Loading branch information
stefaang authored Oct 3, 2019
2 parents 18cdeb9 + c60d75b commit 44b0927
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
5 changes: 3 additions & 2 deletions build_and_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ MODEL="$3"
if [ -z "$MODEL" ]; then
MODEL="PR4100"
fi
echo "Select model $MODEL"

BINARY=$(find packages/$PACKAGE -name "*$MODEL_$PACKAGE_*.bin" | sort | tail -n1)
BINARY=$(find packages/$PACKAGE -name "*${MODEL}_${PACKAGE}_*.bin" | sort | tail -n1)
echo "Created $BINARY"

TARGET="$2"
Expand All @@ -59,7 +60,7 @@ cssh=ssh

echo
echo "Install the app"
$cssh $TARGET /bin/sh -c "/usr/sbin/upload_apkg -rapp.bin -d -f1 -g1 && echo OK!"
$cssh $TARGET "PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin /usr/sbin/upload_apkg -rapp.bin -d -f1 -g1 && echo 'SUCCESS!'"


TEST=tests/$PACKAGE/test.sh
Expand Down
2 changes: 1 addition & 1 deletion wdpk/docker/apkg.rc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: docker
Version: 18.09.1
Version: 19.03.2
Packager: TFL
Email:
Homepage: https://docker.com
Expand Down
14 changes: 5 additions & 9 deletions wdpk/docker/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,19 @@ ARCH="$(uname -m)"

# download docker binaries
cd "${APKG_PATH}"
TARBALL="docker-18.09.1.tgz"
TARBALL="docker-19.03.2.tgz"

if [ ${ARCH} != "x86_64" ]; then
ARCH="armel"
# JediNite provides custom docker packages for ARM
# They are based on docker-runc without seccomp, as the kernel doesn't support it
# The latest version is not available yet
wget "https://github.com/JediNite/docker-ce-WDEX4100-binaries/raw/master/armv7l-WDEX4100/${TARBALL}" --no-check-certificate
URL="https://github.com/JediNite/docker-ce-WDEX4100-binaries/raw/master/armv7l-WDEX4100/${TARBALL}"
else
wget "https://download.docker.com/linux/static/stable/${ARCH}/${TARBALL}" --no-check-certificate
URL="https://download.docker.com/linux/static/stable/${ARCH}/${TARBALL}"
fi

# extract the package
tar xzf ${TARBALL} >> $log 2>&1

# remove the package
rm ${TARBALL}
# download and extract the package
curl -L "${URL}" | tar xz >> $log 2>&1

# stop original docker v1.7
if [ -e "${ORIG_DAEMONSH}" ]; then
Expand Down

0 comments on commit 44b0927

Please sign in to comment.