Can I extend the WebSphere Liberty build?

I'm looking for an extension of the WebSphere Liberty package that comes with Bluemix with some third party libraries from our application architecture, so the EAR file size will be much smaller and the cf push command will be faster and faster. Is it possible?

I know there is an open source WebSphere Liberty buildpack on Cloudfoundry.org, but as far as I know it is not as powerful as the one included in Bluemix and we will lose some cool features.

Thank!

+3


source to share


4 answers


The Liberty builder that you find on GitHub should be similar to the one Bluemix uses, especially in terms of features. Beta features are included and auto-tuning should work this way in theory if you do cf push appName -b https://github.com/cloudfoundry/ibm-websphere-liberty-buildpack.git -p myapp.war

it should work the same way if you did cf push appName -p myapp.war

.



If you want to change the buildpack you can fork it and add the jars you want, although I'm not sure about the process of adding the jars. Maybe someone else can add an answer that points you in the right direction.

+3


source


You can find an alternative buildpack for Websphere Liberty here . As you can see, this is actually a bundled CloudFoundry package - usually they will all work in Bluemix. To use it, add a line buildpack:

to the parameter manifest.yml

or -b

to the command line tool cf

.

There aren't many details in your question about what libraries or modifications you need, but this buildpack is on github and you are free to deploy and modify it. Buildpack prepares the runtime and you should be able to add your own downloads to some hooks and replicate the directory structure you should be using locally. It is also very well documented, so you have to find your way through the config if you are doing anything non-standard.



You can also share your own new collection!

+3


source


If you want to be more efficient during a development cycle in which you are constantly changing changes, you can try the "development mode" support in the Bluemix Liberty buildpack. This allows you to make incremental file changes without even restarting the Liberty server (let alone the container of the entire application, otherwise there is no cf push). See the doc here: https://www.ng.bluemix.net/docs/manageapps/eclipsetools/eclipsetools.html#incrementalpublish . You can also perform remote debugging using design mode.

+3


source


To set up a Liberty server on Bluemix, you can also use the server package

local Liberty server command followed cf push

by the generated zip code.

See https://www.ibm.com/developerworks/community/blogs/msardana/entry/developing_with_bluemix_customizing_the_liberty_build_pack_to_add_your_configurations for details

This of course defeats your goal of less deployment time, but I would like to add completeness and prevent someone from unblocking buildpack without requiring it.

+1


source







All Articles