Running TIBCO BusinessWorks Container Edition Application on Standanlone EC2
You can run a TIBCO BusinessWorks Container Edition application on standalone EC2 instance using Single AMI.
Before you begin
- Run the following command to install required packages for Docker.
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
- Run the following command to set up stable repository.
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- Procedure
- Log in to EC2 instance of TIBCO Cloud™ Integration - BusinessWorks™ created by launching Single AMI.
- Run the following command to install Docker:
sudo yum -y install docker-ce
- Run the following command to start Docker container:
sudo systemctl start docker
Note: The scripts for creating Docker image for TIBCO Cloud™ Integration - BusinessWorks™ are available at /home/ec2-user/bwce/bwce-docker/. - Run the following command to manage Docker as non-root user:
sudo usermod -aG docker $USER
- Copy the required artifacts at /home/ec2-user/bwce/bwce-docker/resources/addons/ (certs, jars, lib, monitoring-agents, plugins, thirdparty-installs) location if you want to extend TIBCO BusinessWorks Container Edition base image.
- Run the following command to create
TIBCO Cloud™ Integration - BusinessWorks™ Docker image at
/home/ec2-user/bwce/bwce-docker/ run location:
./createDockerImage.sh /home/ec2-user/bwce/bwce-runtime/bwceruntime-aws-<version>.zip tibco/bwce:<version>
- Run the following command to create the application image:
docker build -t http-app .
Note: You can build the TIBCO Cloud™ Integration - BusinessWorks™ applicaiton image on top of tibco/bwce:<version> image. - Run the application image using the following command:
docker run -i -d -p 8080:8080 http-app
For more information about running application on Docker, see of TIBCO BusinessWorks Container Edition Samples guide.