-
Notifications
You must be signed in to change notification settings - Fork 25
Openshift Source to Image
kritika Sharma edited this page Jan 22, 2019
·
2 revisions
Openshift's source to image for TIBCO BWCE is a toolkit for creating reproducible Docker images from the source code.
Follow the given steps to use S2I for deploying applications:
- Clone https://github.com/TIBCOSoftware/bw-tooling.git using git clone command on your local machine which will be your S2I_HOME.
- Add artifacts such as the EAR of the application and runtime zip to the folder $S2I_HOME/openshift-s2i/source/ .
- Open terminal and go to folder $S2I_HOME/openshift-s2i/BuilderImage/
- Execute command: docker build -t <base_image_name> . to create the base docker image.
- Execute command: s2i build $S2I_HOME/openshift-s2i/source/ <base_image_name> <builder_image_name> to create application image.
- Execute command: docker run -p 18090:8080 <builder_image_name> to run the application image.
Your application should be running and available on <your-machine's-IP>:8080.