简体   繁体   中英

Is there a way to run a jar inside a vm with gitlab-ci

I have a jar inside VM which needs to be run via gitlab-ci pipeline. Is there any way to exec into the VM and run jar inside VM through gitlab pipeline?

Yes.

If you use Docker as VM, you can setup a runner that uses docker images.

That runner could use an image that contains a java runtime to launch java -jar yourfile.jar .

Current supported java docker image can be found on the hub, eg https://hub.docker.com/_/ibmjava

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM