Date: Fri, 29 Mar 2024 13:00:37 +0000 (UTC) Message-ID: <24465972.12929.1711717237089@change.sos-berlin.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_12928_672958417.1711717237089" ------=_Part_12928_672958417.1711717237089 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Supplemental information is available from the JobScheduler Agent for Docker articl= e.
The JobScheduler Universal Agent can be operated inside a Docker contain= er.
Running JobScheduler Universal Agent inside a Docker container enables y= ou to
download the Dockerfile
FROM java:8-jre EXPOSE 4445 WORKDIR /root RUN wget https://download.sos-berlin.com/JobScheduler.1.13/jobscheduler_uni= x_universal_agent.1.13.3.tar.gz && \ tar xfvz jobscheduler_unix_universal_agent.1.13.3.tar.gz CMD ["/root/jobscheduler_agent/bin/jobscheduler_agent.sh", "start_docker"]<= /pre>
create the image with
docker = build --rm --tag=3Djsagent .
The Dockerfile is based on the jre8 image of http= s://registry.hub.docker.com/_/java/. It downloads the indicated release= of the JobScheduler Universal Agent and extracts it in the /root directory= .
It exposes Port 4445 (the standard port of the JobScheduler Universal Ag= ent).
It starts the JobScheduler Universal Agent with the "start_docker" param= eter. See JS-1419= - Add command to start script to run JobSchedu= ler Universal Agent inside a Docker container Released
If the docker container is stopped with
docker = stop jsagent
Docker will send a SIGTERM Signal to the Agent start script process whic= h will try to end JobScheduler Universal Agent gracefully. This means that = the Agent will not start any new jobs but let running jobs finish normally.=
However, by default Docker has a timeout of 10 seconds for stopping a co= ntainer. So, 10 seconds after the stop command, Docker will kill all runnin= g jobs and other processes inside the container.
This might be too short for some jobs to finish, so using a higher timeo= ut is recommended:
docker = stop =E2=80=94-time=3D120 jsagent
T | Key | Linked Issues | Fix Version/s | Status | P | Summary | Updated |
---|---|---|---|---|---|---|---|
= | JS-1419= a> | 1.10 | Released | Add command to start scri= pt to run JobScheduler Universal Agent inside a Docker container | Dec 16, = 2015 |