Sebastian
Sebastian

Reputation: 123

Can not deploy custom MFP docker image on IBM Bluemix

I've been following the documentation to set up a custom MFP Docker Image on Bluemix, but I am not getting the image uploaded. I filled out all script properties and ran them in order as mentioned on our getting started doc. If I execute the prepare server script, I get the following output:

    $ ./prepareserver.sh args/prepareserver.properties 
    Arguments : 
    ----------- 

    SERVER_IMAGE_TAG :  registry.ng.bluemix.net/sutter/mfpserver71
    PROJECT_LOC :  /Users/XX/Documents/Mobile/Worklight/Demo/temp/addApp/MobileFirstStarter

    /Users/XX/Documents/Mobile/Worklight/Demo/temp/addApp/MobileFirstStarter is a valid project path. Copying project artifacts. 
    copying applications  /Users/XX/Documents/Mobile/Worklight/Demo/temp/addApp/MobileFirstStarter/bin//MyHybrid-common.wlapp

Then the script stops. I’ve browsed through the script and I assume that it gets stuck in line 136 when it tries to add a copy statement to my dockerfile (as the dockerfile is not changed on disk). Any ideas how to solve this?

Upvotes: 0

Views: 214

Answers (2)

Sebastian
Sebastian

Reputation: 123

The issue was related to the fact that the grep function was crashing. I've solved the issue with the IBM support by performing the grep in another shell.

Upvotes: 0

krckumar
krckumar

Reputation: 544

There are two ways you can supply the PROJECT_LOC

Approach-1. Provide the absolute path of the project war to the "PROJECT_LOC" within the prepareserver.properties file.

e.g. PROJECT_LOC=/Users/XX/Documents/Mobile/Worklight/Demo/temp/addApp/

Location of WAR files

Approach-2: (In this case PROJECT_LOC with in the properties file can be kept empty)

Place the project war within the folder named as the Project within "ibm-mfpf-container-7.1.0.0-eval/mfpf-server/usr/PROJECTNAME/bin"

E.g. Following MUST be the structure.

ibm-mfpf-container-7.1.0.0-eval/mfpf-server/usr/projects
            |
            +------TestProject/
                        |
                        +---- bin/TestProject.war
                        |
                        +---- server/
                        |       |
                        +       +--------conf 
                        |               |
                        |               +------- authenticationConfig.xml
                        |               +------- SMSConfig.xml
                        +----- lib  (you can keep this lib is empty)        

Note: make sure in the approach-2, the directory name which encloses the Project war should be same as the Project.war name. For instance in your case it should be like

ibm-mfpf-container-7.1.0.0-eval/mfpf-server/usr/projects/MobileFirstStarter/MobileFirstStater.war

Upvotes: 1

Related Questions