Skip to content

Commit f7d44e1

Browse files
committed
containerization: removed unnecessary dependencies
1 parent 9176e13 commit f7d44e1

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ RUN mkdir -p /usr/src/ticcltools /data
1111
COPY . /usr/src/ticcltools
1212
COPY entrypoint.sh /usr/bin/entrypoint.sh
1313

14-
RUN PACKAGES="libtar libbz2 icu-libs libxml2 libxslt libexttextcat libgomp libstdc++" &&\
15-
BUILD_PACKAGES="build-base autoconf-archive autoconf automake libtool libtar-dev bzip2-dev icu-dev libxml2-dev libxslt-dev libexttextcat-dev git" &&\
14+
RUN PACKAGES="icu-libs libxml2 libstdc++ libbz2 libtar" &&\
15+
BUILD_PACKAGES="build-base autoconf-archive autoconf automake libtool icu-dev bzip2-dev libtar-dev libxml2-dev git" &&\
1616
apk add $PACKAGES $BUILD_PACKAGES &&\
1717
cd /usr/src/ && ./ticcltools/build-deps.sh &&\
1818
cd ticcltools && sh ./bootstrap.sh && ./configure && make && make install &&\

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ The actual TICCL post-correction programs in this collection are:
8989
(https://github.com/LanguageMachines/foliautils) collection for the tool:
9090
FoLiA-correct.
9191

92-
## Container
93-
9492
## Container Usage
9593

9694
A pre-made container image can be obtained from Docker Hub as follows:

build-deps.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ fi
2222
PWD="$(pwd)"
2323
BUILDDIR="$(mktemp -dt "build-deps.XXXXXX")"
2424
cd "$BUILDDIR"
25-
BUILD_SOURCES="LanguageMachines/ticcutils LanguageMachines/libfolia LanguageMachines/uctodata LanguageMachines/ucto LanguageMachines/foliautils"
26-
for SUFFIX in $BUILD_SOURCES; do \
27-
NAME="$(basename "$SUFFIX")"
28-
git clone "https://github.com/$SUFFIX"
29-
cd "$NAME"
30-
REF=$(git tag -l | grep -E "^v?[0-9]+(\.[0-9])*" | sort -t. -k 1.2,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1)
31-
if [ "$VERSION" = "stable" ] && [ -n "$REF" ]; then
32-
git -c advice.detachedHead=false checkout "$REF"
33-
fi
34-
sh ./bootstrap.sh && ./configure --prefix "$PREFIX" && make && make install
35-
cd ..
36-
done
25+
SUFFIX="LanguageMachines/ticcutils"
26+
NAME="$(basename "$SUFFIX")"
27+
git clone "https://github.com/$SUFFIX"
28+
cd "$NAME"
29+
REF=$(git tag -l | grep -E "^v?[0-9]+(\.[0-9])*" | sort -t. -k 1.2,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1)
30+
if [ "$VERSION" = "stable" ] && [ -n "$REF" ]; then
31+
git -c advice.detachedHead=false checkout "$REF"
32+
fi
33+
sh ./bootstrap.sh && ./configure --prefix "$PREFIX" && make && make install
34+
R=$?
35+
cd ..
3736
cd "$PWD"
3837
[ -n "$BUILDDIR" ] && rm -Rf "$BUILDDIR"
38+
exit $R

0 commit comments

Comments
 (0)