0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/test/images/stacker-java.yaml
Andrei Aaron cc2eda0335
test: add test images build instructions and stacker.yamls (#2249)
Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
2024-02-15 13:49:25 +02:00

31 lines
654 B
YAML

build-java-test:
from:
type: docker
url: docker://zothub.io/c3/ubuntu/openj9-devel-amd64:11
import:
- test.java
run: |
. /etc/profile
env # export PATH=$PATH:/bin:/usr/bin
javac -version
java -version
mkdir /workspace
cp /stacker/test.java /workspace/
cd /workspace/
mkdir META-INF
echo "Main-Class: test" > META-INF/MANIFEST.MF
javac test.java
ls
java test
jar cmvf META-INF/MANIFEST.MF test.jar test.class
ls
jar tf test.jar
java -jar test.jar
build_only: true
java-test:
from:
type: scratch
import:
path: stacker://build-java-test/workspace/
dest: /