CentraSite 10.7 | CentraSite Administrator’s Guide | Configuring CentraSite | Docker Configuration | Building the Docker Image for a CentraSite Instance
 
Building the Docker Image for a CentraSite Instance
Prior to building a Docker image for CentraSite, you must complete the following:
*Install Docker client on the machine on which you are going to install CentraSite and start Docker as a daemon. The Docker client should have connectivity to Docker server to create images.
*Install and configure CentraSite Registry Repository and CentraSite Application Server Tier in different environments on a Linux system. For more information, see Installing Software AG Products.
*Shut down any running CentraSite instance.
To facilitate running CentraSite in a Docker container, CentraSite provides the scripts create_dockerimage_CRR.sh and create_dockerimage_CAST.sh located at <Installation-directory>/CentraSite/files to build the Docker images.
*To build a Docker image for a CentraSite instance
1. Start the create_dockerimage_CRR.sh script by running the following command in the SAGInstalldir.
./create_dockerimage_CRR.sh /opt/sagcrr
2. Start the create_dockerimage_CAST.sh script by running the following command in the SAGInstalldir.
./create_dockerimage_CAST.sh /opt/sagcast
A sample output looks as follows:
-bash-4.2$ ./create_dockerimage_CAST.sh /opt/sagcast
Using docker found in /bin/docker...
resolving symlinks...
creating startup script...
zipping files for docker image...
building docker image...
Sending build context to Docker daemon 1.023 GB
Step 1/13 : FROM registry.access.redhat.com/ubi8/ubi-init
---> bcc2dc9a2617
Step 2/13 : MAINTAINER SoftwareAG
---> Running in f087c8f07547
---> 752680a60d19
Removing intermediate container f087c8f07547
Step 3/13 : LABEL "com.softwareag.vendor" "Software AG"
---> Running in 2c4276d767bf
---> 4656dc47a342
Removing intermediate container 2c4276d767bf
Step 4/13 : LABEL "com.softwareag.description" "Software AG CentraSite AST Docker image"
---> Running in ad8e8c23c6ca
---> 84c4a9e269cd
Removing intermediate container ad8e8c23c6ca
Step 5/13 : USER root
---> Running in 34fd05059757
---> 9f2778b93859
Removing intermediate container 34fd05059757
Step 6/13 : RUN groupadd -g 1724 -r sagadmin && useradd --no-log-init -r -g sagadmin -u 1724 sagadmin
---> Running in a634c95dd376

---> 901e3d0f784b
Removing intermediate container a634c95dd376
Step 7/13 : ADD cast.tar.gz /opt/sagcast
---> 50dafdff356f
Removing intermediate container ac0a30886454
Step 8/13 : RUN ln -s /opt/sagcast/common/conf /configs && ln -s /opt/sagcast/profiles/CTP/logs/ /logs && ln -s /opt/sagcast/startup.sh /startup.sh
---> Running in 7e49e1cf8899

---> acd0bcf8c689
Removing intermediate container 7e49e1cf8899
Step 9/13 : USER sagadmin
---> Running in 20c8b5ff9f95
---> ae49108fc881
Removing intermediate container 20c8b5ff9f95
Step 10/13 : WORKDIR /opt/sagcast
---> a4b0e99cfdb6
Removing intermediate container 885c343bb734
Step 11/13 : VOLUME /logs /configs /opt/sagcast/profiles/CTP/workspace /opt/sagcast/CentraSite/cast /opt/sagcast/CentraSite/cfg
---> Running in fd7206e507a7
---> 2b1884ab09e1
Removing intermediate container fd7206e507a7
Step 12/13 : EXPOSE 53307 53308 8181
---> Running in 27fd62a02992
---> 389be935839a
Removing intermediate container 27fd62a02992
Step 13/13 : CMD /startup.sh
---> Running in 776e9f573fc2
---> 58be6946d7d6
Removing intermediate container 776e9f573fc2
Successfully built 58be6946d7d6