Skip to content

Commit 93c842e

Browse files
Merge pull request #97 from TIBCOSoftware/feature-cloud-enhancements
Feature cloud enhancements
2 parents eb51072 + 5c7a95b commit 93c842e

File tree

296 files changed

+4286
-5289
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+4286
-5289
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
cloud/docker/bin/tmp*/**
3+
cloud/docker/frominstall/tmp_*
4+
cloud/kubernetes/helm/charts/

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Tools for TIBCO BusinessEvents®
22
The `be-tools` repository provide different tools to work on TIBCO BusinessEvents® applications.
33
The `cloud` folder provides tools that enables you deploy and monitor your TIBCO BusinessEvents applications on different cloud platforms by using Docker and Kubernetes.
4+
5+
## Documentation
6+
7+
TIBCO BusinessEvents® documentation is available at [wiki pages](https://github.com/TIBCOSoftware/be-tools/wiki).

cloud/README.md

+1-25
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,4 @@
22

33
The `cloud` folder provide tools that enables you deploy and monitor your TIBCO BusinessEvents applications on different cloud platforms by using Docker and Kubernetes.
44

5-
To use these tools and scripts for your TIBCO BusinessEvents applications, clone or download the `cloud` folder to BE_HOME. For more information on how to use those scripts after copying them to BE_HOME, see [TIBCO BusinessEvents Cloud Deployment Guide](https://docs.tibco.com/dyno/businessevents-enterprise/5.6.1/doc/html/GUID-EB00D602-12FD-4C4D-835D-2ECBBB32D235.html).
6-
7-
## Docker Tools
8-
9-
By using the scripts provided in the `docker` folder, you can containerize and run a TIBCO BusinessEvents application in Docker. The folder contains scripts and Dockerfiles that you can use to build Docker images of the following:
10-
11-
- TIBCO BusinessEvents application
12-
13-
- Rule Management Server (RMS)
14-
15-
- TIBCO BusinessEvents Enterprise Administrator Agent
16-
17-
## Kubernetes Tools
18-
19-
The `kubernetes` folder provides sample YAML files to create the Kubernetes objects required for running sample TIBCO BusinessEvents applications on the Kubernetes cluster based on different cloud platforms. It also provides `readme.html` files with instructions that help you to run and test these applications.
20-
21-
The `kubernetes` folder provides sample YAML files and `readme.html` files for the following scenarios based on your cloud platform:
22-
23-
- Running an in-memory application
24-
25-
- Running a cache-based application with different persistence options
26-
27-
- Running RMS to manage business rules through WebStudio
28-
29-
- Running TIBCO BusinessEvents Enterprise Administrator Agent to monitor applications on the Kubernetes cluster
5+
To use these tools and scripts for your TIBCO BusinessEvents applications, clone or download the `cloud` folder to BE_HOME. For more information on how to use those scripts after copying them to BE_HOME, see the documentation at [wiki pages](https://github.com/TIBCOSoftware/be-tools/wiki).

cloud/docker/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Docker Tools
2+
3+
By using the scripts provided in the `docker` folder, you can containerize and run a TIBCO BusinessEvents application in Docker. The folder contains scripts and Dockerfiles that you can use to build Docker images for the following:
4+
5+
- TIBCO BusinessEvents Application
6+
7+
- TIBCO BusinessEvents Rule Management Server
8+
9+
- TIBCO BusinessEvents Enterprise Administrator Agent
10+
11+
## Documentation
12+
13+
TIBCO BusinessEvents® documentation is available at [wiki pages](https://github.com/TIBCOSoftware/be-tools/wiki).

cloud/docker/bin/Dockerfile

+46-11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2+
#
3+
# Copyright (c) 2019-2020. TIBCO Software Inc.
4+
# This file is subject to the license terms contained in the license file that is distributed with this file.
5+
#
16
#
27
# BusinessEvents Dockerfile
38
#
@@ -9,8 +14,12 @@ ARG JRE_VERSION
914
ARG CDD_FILE_NAME
1015
ARG EAR_FILE_NAME
1116
ARG AS_SHORT_VERSION
17+
ARG FTL_VERSION
18+
ARG FTL_SHORT_VERSION
19+
ARG ACTIVESPACES_VERSION
20+
ARG ACTIVESPACES_SHORT_VERSION
1221

13-
FROM ubuntu:latest as intermediate
22+
FROM ubuntu:20.10 as intermediate
1423

1524
ARG BE_PRODUCT_VERSION
1625
ARG BE_SHORT_VERSION
@@ -21,6 +30,12 @@ ARG BE_PRODUCT_ADDONS
2130
ARG BE_PRODUCT_HOTFIX
2231
ARG AS_PRODUCT_HOTFIX
2332
ARG AS_VERSION
33+
ARG FTL_VERSION
34+
ARG FTL_SHORT_VERSION
35+
ARG FTL_PRODUCT_HOTFIX
36+
ARG ACTIVESPACES_VERSION
37+
ARG ACTIVESPACES_SHORT_VERSION
38+
ARG ACTIVESPACES_PRODUCT_HOTFIX
2439
ARG DOCKERFILE_NAME
2540
ARG JRE_VERSION
2641
ARG TEMP_FOLDER
@@ -46,31 +61,42 @@ ENV TIBCO_HOME=/opt/tibco \
4661

4762
WORKDIR /home/tibco/be
4863
RUN chmod +x *.sh *.pm
64+
RUN perl -I. -Mbe_docker_install -e "be_docker_install::install_ftl('$FTL_VERSION','$FTL_PRODUCT_HOTFIX')"
65+
RUN perl -I. -Mbe_docker_install -e "be_docker_install::install_activespaces('$ACTIVESPACES_VERSION','$ACTIVESPACES_PRODUCT_HOTFIX')"
4966
RUN perl -I. -Mbe_docker_install -e "be_docker_install::install_be('$BE_PRODUCT_VERSION','enterprise','$BE_PRODUCT_ADDONS','$BE_PRODUCT_HOTFIX','$AS_PRODUCT_HOTFIX','$AS_VERSION')"
5067
RUN perl -I. -Mbe_docker_install -e "be_docker_install::replaceRunbeVersionToken('$BE_PRODUCT_VERSION','./run')"
5168
RUN perl -I. -Mbe_docker_install -e "be_docker_install::generateAnnotationIndexes('/opt/tibco/be/${BE_SHORT_VERSION}', '/opt/tibco/tibcojre64/${JRE_VERSION}')" \
52-
&& rm -rf as_installers be_installers *.zip \
69+
&& rm -rf as_installers be_installers ftl_installers ftl_installers_hf activespaces_installers activespaces_installers_hf *.zip \
5370
&& find . -regex "./Dockerfile.*" ! -name '$DOCKERFILE_NAME' -delete
5471

5572
WORKDIR /opt/tibco/be/$BE_SHORT_VERSION/bin/
56-
RUN echo "java.property.be.engine.cluster.as.discover.url=%AS_DISCOVER_URL%" >> be-engine.tra \
73+
RUN echo \ >> be-engine.tra \
74+
&& echo "java.property.be.engine.cluster.as.discover.url=%AS_DISCOVER_URL%" >> be-engine.tra \
5775
&& echo "java.property.be.engine.cluster.as.listen.url=%AS_LISTEN_URL%" >> be-engine.tra \
5876
&& echo "java.property.be.engine.cluster.as.remote.listen.url=%AS_REMOTE_LISTEN_URL%" >> be-engine.tra \
5977
&& echo "java.property.com.sun.management.jmxremote.rmi.port=%jmx_port%" >> be-engine.tra
6078

79+
#set ftl home in tra file
80+
RUN sed -i "[email protected][email protected]_HOME=/opt/tibco/ftl/$FTL_SHORT_VERSION@g" be-engine.tra
81+
82+
#set activespaces home in tra file
83+
RUN sed -i "[email protected][email protected]_HOME=/opt/tibco/as/$ACTIVESPACES_SHORT_VERSION@g" be-engine.tra
84+
6185
# Setup gv providers
6286
RUN chmod +x /home/tibco/be/gvproviders/*.sh && /home/tibco/be/gvproviders/setup.sh ${GVPROVIDERS}
6387

6488
# Cleanup.
6589
RUN mkdir -p /opt/tibco/as/${AS_SHORT_VERSION}/ \
66-
&& mkdir -p /opt/tibco/as/${AS_SHORT_VERSION}/bin \
67-
&& mkdir -p /opt/tibco/as/${AS_SHORT_VERSION}/lib \
68-
&& rm -rf /opt/tibco/be/${BE_SHORT_VERSION}/lib/ext/tpcl/gwt \
69-
&& rm -rf /opt/tibco/be/${BE_SHORT_VERSION}/lib/ext/tpcl/tomsawyer \
70-
&& rm -rf /home/tibco/be/be_installers-hf
90+
&& mkdir -p /opt/tibco/as/${AS_SHORT_VERSION}/bin \
91+
&& mkdir -p /opt/tibco/as/${AS_SHORT_VERSION}/lib \
92+
&& mkdir -p /opt/tibco/ftl/${FTL_SHORT_VERSION}/lib \
93+
&& mkdir -p /opt/tibco/as/${ACTIVESPACES_SHORT_VERSION}/lib \
94+
&& rm -rf /opt/tibco/be/${BE_SHORT_VERSION}/lib/ext/tpcl/gwt \
95+
&& rm -rf /opt/tibco/be/${BE_SHORT_VERSION}/lib/ext/tpcl/tomsawyer \
96+
&& rm -rf /home/tibco/be/be_installers-hf
7197

7298
#Discard intermediate image and just copy the installation to a new image.
73-
FROM ubuntu:latest
99+
FROM ubuntu:20.10
74100

75101
ARG BE_PRODUCT_VERSION
76102
ARG BE_SHORT_VERSION
@@ -80,21 +106,30 @@ ARG AS_SHORT_VERSION
80106
ARG JRE_VERSION
81107
ARG CDD_FILE_NAME
82108
ARG EAR_FILE_NAME
109+
ARG FTL_VERSION
110+
ARG FTL_SHORT_VERSION
111+
ARG ACTIVESPACES_VERSION
112+
ARG ACTIVESPACES_SHORT_VERSION
83113

84114
COPY app/${CDD_FILE_NAME} /opt/tibco/be/application/
85115
COPY app/${EAR_FILE_NAME} /opt/tibco/be/application/ear/
86116
COPY app/* /opt/tibco/be/ext/
87117

88118
COPY --from=intermediate /home/tibco/be /home/tibco/be
89119

120+
# copy jre
90121
COPY --from=intermediate /opt/tibco/tibcojre64/${JRE_VERSION} /opt/tibco/tibcojre64/${JRE_VERSION}
91-
122+
# copy be related files
92123
COPY --from=intermediate /opt/tibco/be/${BE_SHORT_VERSION}/bin/be-engine* /opt/tibco/be/${BE_SHORT_VERSION}/bin/
93124
COPY --from=intermediate /opt/tibco/be/${BE_SHORT_VERSION}/bin/*.idx /opt/tibco/be/${BE_SHORT_VERSION}/bin/
94125
COPY --from=intermediate /opt/tibco/be/${BE_SHORT_VERSION}/lib /opt/tibco/be/${BE_SHORT_VERSION}/lib
95-
126+
# copy as2 related files
96127
COPY --from=intermediate /opt/tibco/as/${AS_SHORT_VERSION}/bin /opt/tibco/as/${AS_SHORT_VERSION}/bin
97128
COPY --from=intermediate /opt/tibco/as/${AS_SHORT_VERSION}/lib /opt/tibco/as/${AS_SHORT_VERSION}/lib
129+
# copy ftl related files
130+
COPY --from=intermediate /opt/tibco/ftl/${FTL_SHORT_VERSION}/lib /opt/tibco/ftl/${FTL_SHORT_VERSION}/lib
131+
# copy activespaces related files
132+
COPY --from=intermediate /opt/tibco/as/${ACTIVESPACES_SHORT_VERSION}/lib /opt/tibco/as/${ACTIVESPACES_SHORT_VERSION}/lib
98133

99134
LABEL "TIBCO BusinessEvents Version"=$BE_PRODUCT_VERSION \
100135
"TIBCO BusinessEvents Docker Image Version"=$BE_PRODUCT_IMAGE_VERSION

cloud/docker/bin/Dockerfile-rms

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#
2+
# Copyright (c) 2019-2020. TIBCO Software Inc.
3+
# This file is subject to the license terms contained in the license file that is distributed with this file.
4+
#
5+
#
26
# BusinessEvents Dockerfile
37
#
48
ARG BE_PRODUCT_VERSION
@@ -8,7 +12,7 @@ ARG AS_VERSION
812
ARG JRE_VERSION
913
ARG AS_SHORT_VERSION
1014

11-
FROM ubuntu:latest as intermediate
15+
FROM ubuntu:20.10 as intermediate
1216

1317
ARG BE_PRODUCT_VERSION
1418
ARG BE_SHORT_VERSION
@@ -54,7 +58,7 @@ RUN rm -rf /opt/tibco/be/${BE_SHORT_VERSION}/lib/ext/tpcl/aws
5458
RUN rm -rf /home/tibco/be/be_installers-hf
5559

5660
#Discard intermediate image and just copy the installation to a new image.
57-
FROM ubuntu:latest
61+
FROM ubuntu:20.10
5862

5963
ARG BE_PRODUCT_VERSION
6064
ARG BE_SHORT_VERSION
@@ -64,7 +68,6 @@ ARG AS_SHORT_VERSION
6468
ARG JRE_VERSION
6569

6670
COPY --from=intermediate /home/tibco/be /home/tibco/be
67-
6871
COPY --from=intermediate /opt/tibco/tibcojre64/${JRE_VERSION} /opt/tibco/tibcojre64/${JRE_VERSION}
6972

7073
COPY --from=intermediate /opt/tibco/be/${BE_SHORT_VERSION}/bin/be-engine* /opt/tibco/be/${BE_SHORT_VERSION}/bin/

cloud/docker/bin/Dockerfile-rms.win

+18-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#
2+
# Copyright (c) 2019-2020. TIBCO Software Inc.
3+
# This file is subject to the license terms contained in the license file that is distributed with this file.
4+
#
5+
#
26
# TIBCO BusinessEvents RMS Dockerfile For Windows Platform - Dockerfile-rms.win
37
#
48

@@ -14,6 +18,12 @@ ARG BE_PRODUCT_HOTFIX
1418
ARG AS_PRODUCT_HOTFIX
1519
ARG AS_VERSION
1620
ARG AS_SHORT_VERSION
21+
ARG FTL_VERSION
22+
ARG FTL_SHORT_VERSION
23+
ARG FTL_PRODUCT_HOTFIX
24+
ARG ACTIVESPACES_VERSION
25+
ARG ACTIVESPACES_SHORT_VERSION
26+
ARG ACTIVESPACES_PRODUCT_HOTFIX
1727
ARG DOCKERFILE_NAME
1828
ARG JRE_VERSION
1929
ARG TEMP_FOLDER
@@ -30,6 +40,10 @@ ENV \
3040
JRE_HOME=c:/tibco/tibcojre64/${JRE_VERSION} \
3141
AS_VERSION=${AS_VERSION} \
3242
AS_SHORT_VERSION=${AS_SHORT_VERSION} \
43+
FTL_VERSION=${FTL_VERSION} \
44+
FTL_SHORT_VERSION=${FTL_SHORT_VERSION} \
45+
ACTIVESPACES_VERSION=${ACTIVESPACES_VERSION} \
46+
ACTIVESPACES_SHORT_VERSION=${ACTIVESPACES_SHORT_VERSION} \
3347
BE_PRODUCT_VERSION=${BE_PRODUCT_VERSION} \
3448
CDD_FILE=c:/tibco/be/${BE_SHORT_VERSION}/rms/bin/RMS.cdd \
3549
EAR_FILE=c:/tibco/be/${BE_SHORT_VERSION}/rms/bin/RMS.ear \
@@ -56,10 +70,10 @@ RUN rmdir /S /Q "c:\working"
5670
VOLUME \
5771
"c:\mnt\tibco\be\logs" \
5872
"c:\mnt\tibco\be\data-store" \
59-
"c:\tibco\be\${BE_SHORT_VERSION}\rms\config\notify" \
60-
"c:\tibco\be\${BE_SHORT_VERSION}\rms\config\security" \
61-
"c:\tibco\be\${BE_SHORT_VERSION}\rms\shared" \
62-
"c:\tibco\be\${BE_SHORT_VERSION}\examples\standard\WebStudio"
73+
"${BE_HOME}\rms\config\notify" \
74+
"${BE_HOME}\rms\config\security" \
75+
"${BE_HOME}\rms\shared" \
76+
"${BE_HOME}\examples\standard\WebStudio"
6377

6478
# The following is the list of communication ports that need to be open-n-available
6579
# Port 50000 is AS Listener Port, 50001 is AS Remote Listener Port, 5555 is JMX Port

cloud/docker/bin/Dockerfile-teagent

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
#
2+
# Copyright (c) 2019-2020. TIBCO Software Inc.
3+
# This file is subject to the license terms contained in the license file that is distributed with this file.
4+
#
5+
#
26
# BusinessEvents Dockerfile
37
#
48
ARG BE_PRODUCT_VERSION
59
ARG BE_SHORT_VERSION
610
ARG BE_PRODUCT_IMAGE_VERSION
711
ARG JRE_VERSION
812

9-
FROM ubuntu:latest as intermediate
13+
FROM ubuntu:20.04 as intermediate
1014

1115
ARG BE_PRODUCT_VERSION
1216
ARG BE_SHORT_VERSION
@@ -47,7 +51,7 @@ RUN rm -rf /opt/tibco/be/${BE_SHORT_VERSION}/lib/ext/tpcl/aws \
4751
&& rm -rf /opt/tibco/be/${BE_SHORT_VERSION}/lib/ext/tpcl/tomsawyer \
4852
&& rm -rf /home/tibco/be/be_installers-hf
4953
#Discard intermediate image and just copy the installation to a new image.
50-
FROM ubuntu:latest
54+
FROM ubuntu:20.04
5155

5256
RUN apt-get update -y \
5357
&& apt-get upgrade python3-setuptools -y && apt-get install --no-install-recommends apt-transport-https curl software-properties-common gnupg-agent ca-certificates python3 python3-pip -y \
@@ -107,4 +111,4 @@ EXPOSE 5555
107111

108112
WORKDIR /home/tibco/be
109113
RUN chmod +x *.py
110-
CMD ["./run"]
114+
CMD ["./run"]

0 commit comments

Comments
 (0)