Skip to content

EE 11 Platform TCK testing with Podman

Scott Marlow edited this page Oct 15, 2024 · 12 revisions

Create new Fedora VM/container:

podman run -it fedora /bin/bash

Install some tools (including openjdk version "JDK 11")

dnf install -y zip java-17-openjdk-devel wget vim git unzip maven tree

ensure Java is setup completely

export JAVA_HOME=/usr/lib/jvm/java-17-openjdk/
export PATH=/usr/lib/jvm/java-17-openjdk/bin:$PATH

change into /tmp/ee11 to run TCK from

mkdir /tmp/ee11
cd /tmp/ee11

build Platform TCK from source and run tests

git clone https://github.com/jakartaee/platform-tck
cd platform-tck
mvn clean install
cd glassfish-runner/jpa-platform-tck

mvn clean verify -Pstaging -Dts.home=$PWD/jakartaeetck 2>&1 | tee jpa.log

Example of copying files from Podman container to local filesystem

Assuming the Podman container is called gallant_shamir which mine was randomly named, you could copy GlassFish server log + test output .jte file to your /tmp folder as follows:

` podman ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 31ad5b4d66ef registry.fedoraproject.org/fedora:latest /bin/bash 24 minutes ago Up 24 minutes competent_chatelet

podman cp competent_chatelet:/tmp/ee11/jakartaee-tck/glassfish-runner/jpa-platform-tck/jpa3.log jpa3.log `

Clone this wiki locally