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
  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 Cloud™ Integration - BusinessWorks™ 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 Cloud™ Integration - BusinessWorks™ 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 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>
  7. 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.
  8. 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.