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.

Prerequisites

  1. Run the following command to install required packages for Docker.
    sudo yum install -y yum-utils device-mapper-persistent-data lvm2
  2. 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

  1. Log in to EC2 instance of TIBCO BusinessWorks Container Edition created by launching Single AMI.
  2. Run the following command to install Docker.
    sudo yum -y install docker-ce
  3. Run the following command to start Docker container.
    sudo systemctl start docker
    Note: The scripts for creating Docker image for TIBCO BusinessWorks Container Edition are available at /home/ec2-user/bwce/bwce-docker/
  4. Run the following command to manage Docker as non-root user.
    sudo usermod -aG docker $USER
  5. 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.
  6. Run the following command to create TIBCO BusinessWorks Container Edition 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>
  7. Create the application image using the following command:
    docker build -t http-app .
    Note: You can built the TIBCO BusinessWorks Container Edition Applicaiton image on top of tibco/bwce:<version> image.
  8. Run the application image using the following command.
    docker run -i -d -p 8080:8080 http-app