rmvanderspek
Dabbler
- Joined
 - Apr 12, 2022
 
- Messages
 - 13
 
I'm running TrueNAS-SCALE-22.02.4
I have several application running using the truecharts. All applications run as expected.
Now I'm running into some issues trying to run a custom docker image. It's an image that contains a java app (jar) which should be booted on startup. (java -jar /usr/share/jenkins/agent.jar). Unfortunately I keep getting an error in the deploy stage:
When I change the Container Args for '-version', I do get the java version output, so the command seems to be working when it only has one arg. Anyone know what I am doing wrong here?
	
		
			
		
		
	
			
			I have several application running using the truecharts. All applications run as expected.
Now I'm running into some issues trying to run a custom docker image. It's an image that contains a java app (jar) which should be booted on startup. (java -jar /usr/share/jenkins/agent.jar). Unfortunately I keep getting an error in the deploy stage:
2022-11-30 08:21:55.941605+00:00Unrecognized option: -jar /usr/share/jenkins/agent.jar
2022-11-30 08:21:55.941810+00:00Error: Could not create the Java Virtual Machine.
2022-11-30 08:21:55.941823+00:00Error: A fatal exception has occurred. Program will exit.
When I change the Container Args for '-version', I do get the java version output, so the command seems to be working when it only has one arg. Anyone know what I am doing wrong here?
- Application Name: jenkins-agent
 - Version: 2208.0.0
 - Docker Image:
 
- Image repository: jenkins/agent
 - Image Tag: latest
 - Image Pull Policy: Only pull image if not present on host
 - Container CMD: java
 - Container Args: -jar /usr/share/jenkins/agent.jar
 - DNS Policy: Use Default DNS Policy where Pod will inherit the name resolution configuration from the node.
 - Provide access to node network namespace for the workload: false
 - Host Path Volumes: 1
 - Enable TTY: false
 - Enable STDIN: false
 - Security Context:
 
- Privileged Mode: false
 - Configure Container User and Group ID: false
 - Update Strategy: Create new pods and then kill old ones
 - GPU Configuration:
 
- GPU Resource (amd.com/gpu): Allocate 0 amd.com/gpu GPU
 - Enable Pod resource limits: false
 - Enable WebUI Portal (only supported in TrueNAS SCALE Bluefin): false