Revision 126:828f0de6b2fb
| SCRIPTS/Dockerfile | ||
|---|---|---|
| 1 |
FROM base/devel:latest |
|
| 2 |
MAINTAINER Chris Cannam <cannam@all-day-breakfast.com> |
|
| 3 |
RUN echo "[multilib]" >> /etc/pacman.conf && echo "Include = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf |
|
| 4 |
RUN pacman-key --refresh-keys && pacman -Syu --noconfirm && pacman-db-upgrade && pacman -S --noconfirm \ |
|
| 5 |
mercurial subversion git \ |
|
| 6 |
zip \ |
|
| 7 |
libsndfile \ |
|
| 8 |
python2-numpy \ |
|
| 9 |
mingw-w64-gcc \ |
|
| 10 |
lib32-ncurses wine \ |
|
| 11 |
openssh w3m |
|
| 12 |
RUN hg clone https://code.soundsoftware.ac.uk/hg/vamp-build-and-test /opt/vamp-build-and-test |
|
| 13 |
WORKDIR /opt/vamp-build-and-test |
|
| 14 |
RUN ./SCRIPTS/update-all.sh |
|
| SCRIPTS/Dockerfile_arch | ||
|---|---|---|
| 1 |
FROM base/devel:latest |
|
| 2 |
MAINTAINER Chris Cannam <cannam@all-day-breakfast.com> |
|
| 3 |
RUN echo "[multilib]" >> /etc/pacman.conf && echo "Include = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf |
|
| 4 |
RUN pacman-key --refresh-keys && pacman -Syu --noconfirm && pacman-db-upgrade && pacman -S --noconfirm \ |
|
| 5 |
mercurial subversion git \ |
|
| 6 |
zip \ |
|
| 7 |
libsndfile \ |
|
| 8 |
python2-numpy \ |
|
| 9 |
mingw-w64-gcc \ |
|
| 10 |
lib32-ncurses wine \ |
|
| 11 |
openssh w3m |
|
| 12 |
RUN hg clone https://code.soundsoftware.ac.uk/hg/vamp-build-and-test /opt/vamp-build-and-test |
|
| 13 |
WORKDIR /opt/vamp-build-and-test |
|
| 14 |
RUN ./SCRIPTS/update.sh |
|
| SCRIPTS/update-all.sh | ||
|---|---|---|
| 1 |
#!/bin/bash |
|
| 2 |
|
|
| 3 |
set -eu |
|
| 4 |
|
|
| 5 |
# Run this from the top-level vamp-build-and-test directory |
|
| 6 |
|
|
| 7 |
failed=/tmp/failed_$$ |
|
| 8 |
rm -f "$failed" |
|
| 9 |
trap "rm -f $failed" 0 |
|
| 10 |
|
|
| 11 |
cat METADATA/repos.txt | grep -v '^#' | awk -F= '{ print $1, $2 }' |
|
|
| 12 |
while read name loc; do |
|
| 13 |
if [ -d "$name"/.hg ]; then |
|
| 14 |
( cd $name ; hg pull && hg update ) || echo "$name" >> "$failed" |
|
| 15 |
elif [ -d "$name"/.git ]; then |
|
| 16 |
( cd $name ; git pull ) || echo "$name" >> "$failed" |
|
| 17 |
elif [ -d "$name" ]; then |
|
| 18 |
echo "ERROR: Directory \"$name\" exists, but is not a git or hg repo" 1>&2 |
|
| 19 |
exit 1 |
|
| 20 |
else |
|
| 21 |
case "$loc" in |
|
| 22 |
*/hg/*) |
|
| 23 |
hg clone "$loc" "$name" || echo "$name" >> "$failed";; |
|
| 24 |
*//git*) |
|
| 25 |
git clone "$loc" "$name" || echo "$name" >> "$failed";; |
|
| 26 |
*) |
|
| 27 |
echo "ERROR: Can't deduce repo type from URL \"$loc\"" 1>&2 |
|
| 28 |
exit 1;; |
|
| 29 |
esac |
|
| 30 |
fi |
|
| 31 |
done |
|
| 32 |
|
|
| 33 |
echo "Done" |
|
| 34 |
if [ -f "$failed" ]; then |
|
| 35 |
echo "Failed repos:" |
|
| 36 |
cat "$failed" |
|
| 37 |
fi |
|
| SCRIPTS/update.sh | ||
|---|---|---|
| 1 |
#!/bin/bash |
|
| 2 |
|
|
| 3 |
# Run this from the top-level vamp-build-and-test directory |
|
| 4 |
# Optional argument for the single repo to checkout; default is all of them |
|
| 5 |
|
|
| 6 |
single="" |
|
| 7 |
if [ -n "$1" ]; then |
|
| 8 |
single="$1" |
|
| 9 |
fi |
|
| 10 |
|
|
| 11 |
set -eu |
|
| 12 |
|
|
| 13 |
failed=/tmp/failed_$$ |
|
| 14 |
rm -f "$failed" |
|
| 15 |
trap "rm -f $failed" 0 |
|
| 16 |
|
|
| 17 |
cat METADATA/repos.txt | grep -v '^#' | awk -F= '{ print $1, $2 }' |
|
|
| 18 |
while read name loc; do |
|
| 19 |
if [ -n "$single" ]; then |
|
| 20 |
if [ "$single" != "$name" ]; then |
|
| 21 |
continue |
|
| 22 |
fi |
|
| 23 |
fi |
|
| 24 |
if [ -d "$name"/.hg ]; then |
|
| 25 |
( cd $name ; hg pull && hg update ) || echo "$name" >> "$failed" |
|
| 26 |
elif [ -d "$name"/.git ]; then |
|
| 27 |
( cd $name ; git pull ) || echo "$name" >> "$failed" |
|
| 28 |
elif [ -d "$name" ]; then |
|
| 29 |
echo "ERROR: Directory \"$name\" exists, but is not a git or hg repo" 1>&2 |
|
| 30 |
exit 1 |
|
| 31 |
else |
|
| 32 |
case "$loc" in |
|
| 33 |
*/hg/*) |
|
| 34 |
hg clone "$loc" "$name" || echo "$name" >> "$failed";; |
|
| 35 |
*//git*) |
|
| 36 |
git clone "$loc" "$name" || echo "$name" >> "$failed";; |
|
| 37 |
*) |
|
| 38 |
echo "ERROR: Can't deduce repo type from URL \"$loc\"" 1>&2 |
|
| 39 |
exit 1;; |
|
| 40 |
esac |
|
| 41 |
fi |
|
| 42 |
done |
|
| 43 |
|
|
| 44 |
echo "Done" |
|
| 45 |
if [ -f "$failed" ]; then |
|
| 46 |
echo "Failed repos:" |
|
| 47 |
cat "$failed" |
|
| 48 |
fi |
|
Also available in: Unified diff