Supplemental information is available from the JobScheduler Agent for Docker article.
The JobScheduler Universal Agent can be operated inside a Docker container.
download the Dockerfile
Code Block language bash title Dockerfile collapse true
FROM java:8-jre EXPOSE 4445 WORKDIR /root RUN wget https://download.sos-berlin.com/JobScheduler.1.1013/jobscheduler_unix_universal_agent.1.1013.03.tar.gz && \ tar xfvz jobscheduler_unix_universal_agent.1.1013.03.tar.gz CMD ["/root/jobscheduler_agent/bin/jobscheduler_agent.sh", "start_docker"]
- put it into a working directory on a Docker host
- cd into the working directory
create the image with
Code Block language bash
docker build --rm -t -tag=jsagent .
The dockerfile Dockerfile is based on the jre8 image of https://registry.hub.docker.com/_/java/. It downloads the most recent indicated release of the JobScheduler Universal Agent and extracts it in the /root directory.
Docker will send a SIGTERM Signal to the Agent startscript start script process which 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 timout timeout of 10 seconds for stopping a container. So, 10 seconds after the stop command, Docker will kill all running jobs and other processes inside the container.