Shipping your agents
Locally with a single jar
Docker container
FROM openjdk:22-jdk-slim
WORKDIR /app
COPY libs/sampleagent-@@applicationVersion@@.jar /app/sampleagent-all.jar
ENTRYPOINT ["java", "-Dnetworkaddress.cache.ttl=0", "-Dnetworkaddress.cache.negative.ttl=0", "-Dspring.profiles.active=prod,aws", "-Xmx2g", "--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED", "--add-opens=java.base/java.lang=ALL-UNNAMED", "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED", "--add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED", "-jar", "/app/sampleagent-all.jar"]
EXPOSE 8080build {
copy {
from('Dockerfile') {
filter { it.replaceAll('@@applicationVersion@@', version) }
}
into 'build'
}
}
Elastic Beanstalk or Similar
Hosting with the Talent Cloud
Last updated
Was this helpful?
