Skip to content

Commit

Permalink
Fix espeak voice downloads in Dockerfile
Browse files Browse the repository at this point in the history
SVN support go bye bye
  • Loading branch information
GnomedDev committed Mar 5, 2024
1 parent a0683d8 commit c5dcd51
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN apt-get update && apt-get upgrade -y && \
# Build and install mbrola
git clone https://github.com/numediart/MBROLA --depth 1 && cd MBROLA && make && cp Bin/mbrola /usr/bin/mbrola && cd .. && rm -rf MBROLA && \
# Download the mbrola voices to /usr/share/mbrola.
svn export https://github.com/numediart/MBROLA-voices/trunk/data /usr/share/mbrola
./sparse-checkout.sh https://github.com/numediart/MBROLA-voices /usr/share/mbrola && mv /usr/share/mbrola/data/* /usr/share/mbrola && rm -r /usr/share/mbrola/data

# Download tini to avoid zombie processes
ADD https://github.com/krallin/tini/releases/latest/download/tini /usr/local/bin/tini
Expand Down
18 changes: 18 additions & 0 deletions sparse-checkout.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/bash

rurl="$1" localdir="$2" && shift 2

mkdir -p "$localdir"
cd "$localdir"

git init
git remote add -f origin "$rurl"

git config core.sparseCheckout true

# Loops over remaining args
for i; do
echo "$i" >> .git/info/sparse-checkout
done

git pull --depth 1 origin master

0 comments on commit c5dcd51

Please sign in to comment.