-
Notifications
You must be signed in to change notification settings - Fork 109
Instructions for running the nightly engineering build of Platform TCK with Podman (currently for EE 10)
podman run -it fedora /bin/bash
yum install -y zip java-11-openjdk-devel wget vim git unzip
mkdir /tmp/ee10
cd /tmp/ee10
wget https://download.eclipse.org/ee4j/jakartaee-tck/jakartaee10/staged/eftl/jakarta-jakartaeetck-10.0.0.zip
unzip jakarta-jakartaeetck-10.0.0.zip
export WORKSPACE=$PWD
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
export PATH=/usr/lib/jvm/java-1.11.0-openjdk/bin:$PATH
export GF_BUNDLE_URL=https://download.eclipse.org/ee4j/glassfish/glassfish-7.0.0-SNAPSHOT-nightly.zip
wget https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.6-bin.zip && unzip -o apache-ant-1.10.6-bin.zip && rm -f apache-ant-1.10.6-bin.zip && export ANT_HOME=$PWD/apache-ant-1.10.6 && export PATH=$ANT_HOME/bin:$PATH && export PATH=$ANT_HOME/bin/:$PATH
export ANT_OPTS="-Djavax.xml.accessExternalStylesheet=all -Djavax.xml.accessExternalSchema=all -Djavax.xml.accessExternalDTD=file,http -Duser.home=$HOME"
wget https://repo1.maven.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
mv ant-contrib-1.0b3.jar $ANT_HOME/lib
chmod +x jakartaeetck/docker/run_jakartaeetck.sh
bash -x jakartaeetck/docker/run_jakartaeetck.sh samples 2>&1 | tee run_samples.log
bash -x jakartaeetck/docker/run_jakartaeetck.sh ejb30/lite/packaging/embed/provider 2>&1 | tee tck.log
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 cp gallant_shamir:/tmp/ee10/vi/glassfish7/glassfish/domains/domain1/logs/server.log /tmp
podman cp gallant_shamir:/tmp/ee10/jakartaeetck-work/ejb30_lite_packaging_embed_provider/com/sun/ts/tests/ejb30/lite/packaging/embed/provider/Client_customProvider_from_ejbembed.jtr /tmp