Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable infinispan client setup to run on UBI minimal #614

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions releases/24.0.0.12/full/helpers/build/infinispan-client-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@ fi

set -Eeox pipefail

yum update -y
yum install -y maven
pkgcmd=yum
if ! command $pkgcmd
then
pkgcmd=microdnf
fi

$pkgcmd update -y
$pkgcmd install -y maven
mkdir -p /opt/ol/wlp/usr/shared/resources/infinispan
echo '<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>io.openliberty</groupId> <artifactId>openliberty-infinispan-client</artifactId> <version>1.0</version> <!-- https://mvnrepository.com/artifact/org.infinispan/infinispan-jcache-remote --> <dependencies> <dependency> <groupId>org.infinispan</groupId> <artifactId>infinispan-jcache-remote</artifactId> <version>10.1.3.Final</version> </dependency> </dependencies></project>' > /opt/ol/wlp/usr/shared/resources/infinispan/pom.xml
mvn -f /opt/ol/wlp/usr/shared/resources/infinispan/pom.xml versions:use-latest-releases -DallowMajorUpdates=false
mvn -f /opt/ol/wlp/usr/shared/resources/infinispan/pom.xml dependency:copy-dependencies -DoutputDirectory=/opt/ol/wlp/usr/shared/resources/infinispan
yum remove -y maven
# This fails with dependency errors using microdnf on ubi-minimal, but it is okay to let it fail
yum remove -y maven || true
rm -f /opt/ol/wlp/usr/shared/resources/infinispan/pom.xml
rm -f /opt/ol/wlp/usr/shared/resources/infinispan/jboss-transaction-api*.jar
rm -f /opt/ol/wlp/usr/shared/resources/infinispan/reactive-streams-*.jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@ fi

set -Eeox pipefail

yum update -y
yum install -y maven
pkgcmd=yum
if ! command $pkgcmd
then
pkgcmd=microdnf
fi

$pkgcmd update -y
$pkgcmd install -y maven
mkdir -p /opt/ol/wlp/usr/shared/resources/infinispan
echo '<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>io.openliberty</groupId> <artifactId>openliberty-infinispan-client</artifactId> <version>1.0</version> <!-- https://mvnrepository.com/artifact/org.infinispan/infinispan-jcache-remote --> <dependencies> <dependency> <groupId>org.infinispan</groupId> <artifactId>infinispan-jcache-remote</artifactId> <version>10.1.3.Final</version> </dependency> </dependencies></project>' > /opt/ol/wlp/usr/shared/resources/infinispan/pom.xml
mvn -f /opt/ol/wlp/usr/shared/resources/infinispan/pom.xml versions:use-latest-releases -DallowMajorUpdates=false
mvn -f /opt/ol/wlp/usr/shared/resources/infinispan/pom.xml dependency:copy-dependencies -DoutputDirectory=/opt/ol/wlp/usr/shared/resources/infinispan
yum remove -y maven
# This fails with dependency errors using microdnf on ubi-minimal, but it is okay to let it fail
yum remove -y maven || true
rm -f /opt/ol/wlp/usr/shared/resources/infinispan/pom.xml
rm -f /opt/ol/wlp/usr/shared/resources/infinispan/jboss-transaction-api*.jar
rm -f /opt/ol/wlp/usr/shared/resources/infinispan/reactive-streams-*.jar
Expand Down