Skip to content

Commit 4ac1202

Browse files
Pogrebnyak, SergeiPogrebnyak, Sergei
authored andcommitted
How to customize Command Central image
1 parent de342ef commit 4ac1202

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM store/softwareag/commandcentral:10.1.0.1-server
2+
3+
# customize Command Central settings example
4+
RUN echo com.softwareag.platform.management.client.template.composite.skip.restart.runtimes=true>>$SAG_HOME/profiles/CCE/configuration/config.ini

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,31 @@ container's internal id.
6969

7070
After a minute or so the managed node status will change to green (ONLINE).
7171

72+
## Create custom Command Central image
73+
74+
You tune up certain aspects of Command Central by modifying its configuration files and creating a custom image with the changes.
75+
76+
For example, you can optimize your local template development or CI process by instructing Command Central to skip restart of runtimes at the end of composite template application.
77+
78+
```dockerfile
79+
FROM store/softwareag/commandcentral:10.1.0.1-server
80+
# skip runtimes restart
81+
RUN echo com.softwareag.platform.management.client.template.composite.skip.restart.runtimes=true>>$SAG_HOME/profiles/CCE/configuration/config.ini
82+
```
83+
84+
Build the image and run the container:
85+
86+
```bash
87+
docker build -t my/ccserver:10.1 .
88+
docker run --name cc -d -p 8091 --network ccnetwork my/ccserver:10.1
89+
```
90+
91+
Use it in your DEV/CI pipeline:
92+
93+
```bash
94+
docker exec cc sagcc exec composite templates apply mytemplate
95+
```
96+
7297
## Using docker-compose files for dev and test environments
7398

7499
Run example init service from ```docker-compose.yml``` file:

0 commit comments

Comments
 (0)