How to change BWCE base operating system image?

How to change BWCE base operating system image?

book

Article ID: KB0084169

calendar_today

Updated On:

Products Versions
TIBCO BusinessWorks Container Edition 2.2.1

Description

The base docker image for BWCE container uses debian as the base operating system. It is configured in the bece_cf.zip file. This articles has the details of changing the base image from debian to centos. The same can be applied for other operating system.

Issue/Introduction

This document explains the details of changing the default base debian image to centos

Environment

All

Resolution

Please follow these steps.

1. Go to the following location and open up the Docker file

<installlocation>/bwce/2.2/

2.  The file has the following details 

FROM debian:jessie

MAINTAINER TIBCO Software Inc.

ADD . /

RUN chmod 755 /scripts/*.sh && apt-get update && apt-get -y install unzip ssh

ENTRYPOINT ["/scripts/start.sh"]

3. Change the file as follows

FROM centos:7 

MAINTAINER TIBCO Software Inc.

ADD . /

RUN chmod 755 /scripts/*.sh && yum update && yum -y install unzip ssh

ENTRYPOINT ["/scripts/start.sh"]

4. After making above change, use the normal step to build the image

sh-3.2# docker build -t tibco/bwcecentos7:base .

Sending build context to Docker daemon 179.9 MB

Step 1/5 : FROM centos:7

 ---> 98d35105a391

Step 2/5 : MAINTAINER TIBCO Software Inc.

 ---> Using cache

 ---> 609c00558736

Step 3/5 : ADD . /

 ---> Using cache

 ---> b39752011b21

Step 4/5 : RUN chmod 755 /scripts/*.sh && yum update && yum -y install unzip ssh

 ---> Using cache

 ---> 1506a912243f

Step 5/5 : ENTRYPOINT /scripts/start.sh

 ---> Using cache

 ---> 3197f6b3ba7e

Successfully built 3197f6b3ba7e

5. The above command creates a new base image with centos7 as the base operating system

tibco/bwcecentos7                         base                   3197f6b3ba7e        6 days ago          453 MB

6.  This image can be used for further bw application deployment.