6. Add project in Openshift

6.1. Create a DockerFile

With openshift, we are going not deploy a war but a docker image.

The docker image is built by jenkins job BuildDockerSnapshot_trainings-hello10-master.

You must only add one file (Dockerfile in the root of the master project.) in your project. This file is used to define the base image that you want to use.

1) Choose your image in the docker repository. You can choose a image JBoss EAP 7 for socsec because the application will be deployed on the socsec tenant.

2) Click on the image that you have chosen

https://git01.smals.be/baseimages/base-eap70-ose-socsec


3) The url is in the README.md

readme fo docker base image jboss eap 7 socsec

Result : add a Dockerfile

docker file in jboss developer studio

Content : 

FROM container-release.smals.be/base-eap70-ose-socsec:v2