Skip to content

Teamcenter 12 / Active Workspace 4.2 in Docker containers.

Notifications You must be signed in to change notification settings

nz4ypt/docker-tc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teamcenter 12 in Docker

Note This is still pretty rough and require being creative here or there to really set it up. It also requires decent understanding about Teamcenter Unified Architecture.

Teamcenter docker network

docker network create tcnetwork

Oracle 18c image with TC schema populated

Docker Image: donggonghua/oracle-tc12-orcl

docker pull donggonghua/oracle-tc12-orcl:firsttry

docker run -d -p 1521:1521 -p 5500:5500 \
    --name docker-tcorcl \
    --hostname docker-tcorcl \
    --network tcnetwork \
    -e ORACLE_SID=TCORCL \
    -e ORACLE_PDB=TCORCLP1 \
    -e ORACLE_PWD=tcorcl \
    -v /your-gitroot/docker-tc/oracle/setup:/opt/oracle/scripts/setup \
    donggonghua/oracle-tc12-orcl:firsttry

TcFMS and License

  • Teamcenter FMS Master
  • Siemens PLM License server (Optional)

Docker File: fms/Dockerfile

cd fms
docker build --force-rm=true --no-cache=true -t tc-fms-lic-12 .

# Static port for vendor daemon used (28001)
docker run -tid \
    -p 4544:4544 \
    -p 28000:28000 -p 28001:28001 \
    --name docker-fmslic \
    --network tcnetwork \
    --add-host docker-host:your-host-ip \
    --hostname docker-fmslic \
    -e FSC_HOME=/apps/siemens/tc12.2.0.4/fsc \
    -v /opt/dockersrc/siemens/tc12.2.0.4:/apps/siemens/tc12.2.0.4 \
    -v /opt/dockersrc/siemens/tclogs:/data/tclogs \
    -v /opt/dockersrc/siemens/tcvols:/data/tcvols \
    tc-fms-lic-12

TcServer container

  • Tomcat 8.5.57 Application Server
  • Teamcenter Pool Manager TCP mode
  • FSC Slave to support server pool

Docker File: webpool/Dockerfile

cd webpool
docker build --force-rm=true --no-cache=true -t tc-web-pool-12 .

# Publish tomcat port is optional if load balancer is used below.
# 8081 used for JMX which is optional
# Jenkins agent
# - assuming jenkins host is "myjenkins" on 8080
# - assuming agent.jar and secret-file are located in jenkins/agent directory in 
#   mapped volume. if need change, edit runTcWebPool.sh
docker run -tid \
    -p 8080:8080 -p 9001:8081 \
    --name docker-tcserver1 \
    --add-host docker-host:your-host-ip \
    --hostname docker-tcserver1 \
    --network tcnetwork \
    -v /opt/dockersrc/siemens/tc12.2.0.4:/apps/siemens/tc12.2.0.4 \
    -v /opt/dockersrc/siemens/tcdata:/data/tcdata \
    -v /opt/dockersrc/siemens/tclogs:/data/tclogs \
    -v /opt/dockersrc/siemens/jenkins/tcserver1:/data/jenkins \
    -v /opt/dockersrc/siemens/tcapps:/apps/siemens/tcapps \
    -v /opt/dockersrc/siemens/scripts:/apps/scripts \
    tc-web-pool-12

Tc Load Balaner

  • Nginx simple load balancer, to support multiple TcServer containers.
docker run -tid \
    -p 80:80 \
    --name docker-tclb \
    --add-host docker-host:your-host-ip \
    --hostname docker-tclb \
    --network tcnetwork \
    nginx

docker start docker-tclb 
docker exec -it docker-tclb bash

cat << EOF > /etc/nginx/nginx.conf
user  nginx;
worker_processes  1;
error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;
events {
    worker_connections  1024;
}
http {
    upstream backend {
        least_conn;
        server docker-tcserver1:8080;
        #server docker-tcserver2:8080;
        #server docker-tcserver3:8080 backup;
        #server docker-tcserver4:8080 backup;
        #server docker-tcserver5:8080 backup;
    }
    server {
        listen 80;
        location / {
            proxy_pass http://backend;
        }
    }
}
EOF

exit
docker restart docker-tclb

Management Console (TMC)

Manage Pool and Web instance through JMX.

Docker File: tmc/Dockerfile

cd tmc
docker build --force-rm=true --no-cache=true -t tc-mgmt-console-12 . 

docker run -tid \
    -p 8083:8083 \
    --name docker-tmc \
    --add-host docker-host:your-host-ip \
    --hostname docker-tmc \
    --network tcnetwork \
    -v /opt/dockersrc/siemens/tc12.2.0.4:/apps/siemens/tc12.2.0.4 \
    -v /opt/dockersrc/siemens/tclogs:/data/tclogs \
    -v /opt/dockersrc/siemens/jenkins/tmc:/data/jenkins \
    -v /opt/dockersrc/siemens/scripts:/apps/scripts \
    tc-mgmt-console-12

# if you wish to run TEM on TMC container (i.e. updating JMX URL)
# add below two arguments
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e DISPLAY=unix$DISPLAY \

Jenkins

docker run -tid \
    -p 81:8080 \
    -p 50000:50000 \
    --name myjenkins \
    --network tcnetwork \
    --hostname myjenkins \
    --add-host docker-host:your-host-ip \
    -v /opt/dockersrc/jenkins:/var/jenkins_home \
    jenkins/jenkins

Screenshots

  • Docker containers

TC Container

  • Active Workspace (Load Balancer)

AWC

  • Management Console

TMC

  • Jenkins

Jenkins

About

Teamcenter 12 / Active Workspace 4.2 in Docker containers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published