Tigase's Docker Maven build package
It's an image used for building and deploying Tigase artifacts. It contains dedicated settings file with credentials exposed as variables facilating building in CI.
tigase.internalrepo.usernameandtigase.internalrepo.passwordfor archiva hosted repositorytigase.githubrepo.usernameandtigase.githubrepo.passwordfor (private) maven repository hosted on github
Usage is completely simple and boil down to adding above variables as parameters to mvn command prefixed with -D and setting relevant credentials
docker run -v "$(pwd)":/opt/maven -w /opt/maven --rm tigase/tigase-maven-docker:3-temurin-21 mvn -Dtigase.internalrepo.username=<username> -Dtigase.internalrepo.password=<password> clean install deployWe should build multi-arch images, please prepare build environment as outlined in https://docs.docker.com/desktop/multi-arch/ (because of the limitations of multi-arch one MUST push using build to properly push multi-arch tag)
for VERSION in 17 21 ; do
docker buildx build \
--platform linux/amd64,linux/arm64 \
--build-arg JDK_VERSION=${JDK_VERSION:-21} \
-t tigase/tigase-maven-docker:3-temurin-${JDK_VERSION:-21} \
-f temurin/Dockerfile \
--no-cache ./ \
--push
done
Official Tigase repository is available at: https://github.com/tigase/tigase-server/.
Copyright (c) 2004 Tigase, Inc.