mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
32 lines
654 B
YAML
32 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: /
|