docker: add CODE branding (optionally) to image built from source

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibf21760668b77c8734316bf5219509ed899aba62
pull/5045/head
Andras Timar 2022-07-19 21:54:32 +02:00
parent b2788bf702
commit c2ec7a3468
1 changed files with 18 additions and 0 deletions

View File

@ -103,6 +103,16 @@ fi
( cd online && git fetch --all && git checkout -f $COLLABORA_ONLINE_BRANCH && git clean -f -d && git pull -r ) || exit 1
# brand repo
if test ! -d online-branding ; then
git clone git@gitlab.collabora.com:productivity/online-branding.git online-branding || echo "Could not clone this proprietary repo"
fi
if test -d online-branding ; then
( cd online-branding && git pull -r ) || exit 1
fi
##### LOKit (core) #####
# build
@ -127,6 +137,14 @@ cp -a core/instdir "$INSTDIR"/opt/lokit
# copy stuff
( cd online && DESTDIR="$INSTDIR" make install ) || exit 1
##### online branding #####
if test -d online-branding ; then
cd online-branding
./brand.sh $INSTDIR/opt/lokit $INSTDIR/usr/share/coolwsd/browser/dist 6 # CODE
./brand.sh $INSTDIR/opt/lokit $INSTDIR/usr/share/coolwsd/browser/dist 7 # Nextcloud Office
cd ..
fi
# Create new docker image
if [ -z "$NO_DOCKER_IMAGE" ]; then
cd "$SRCDIR"