Running in a Docker Container

Using AggreGate Server in a container will be successful only when using a license server with a complex license that’s not relying to activation keys.

To install AggreGate into a Docker, proceed as follows:

1. Install Docker in a way suitable for your OS, for example:

$ apt-get install docker

2. Run AggreGate installer:

$ ./<AggreGate_full_x.x.x_unix-x64.sh>

3. Go to AggreGate directory:

$ cd /opt/AggreGate

4. Create a file with name Dockerfile in this directory and fill it with the following text:

# Dockerfile
# OS template
FROM centos:7

# Working AggreGate dir in docker image
WORKDIR /AggreGate
ADD ./AggreGate

# Next lines needs to enable working with widgets
RUN yum install -y xorg-x11-server-Xvfb
RUN yum install -y libXrender.x86_64
RUN yum install -y libXtst.x86_64
RUN yum install -y which

# Ports opened from docker. You could add all needed ports
EXPOSE 6460
EXPOSE 8080
EXPOSE 6480
CMD xvfb-run --auto-servernum ./ag_server -r

5. Run the docker build process:

$ docker build -t AggreGate .

6. Check the created image in the local docker registry:

root@ubuntu:/opt/AggreGate # docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
AggreGate latest 32a4dd3d23e8 4 hours ago 1.272 GB
centos 7 328edcd84f1b 2 weeks ago 192.5 MB

7. Now you can run the application from the docker image:

$ docker run AggreGate

In addition, you can create a volume for storing data and mount it to docker.

Was this page helpful?