<commit_before># WSO2 ESB 4.8.1 Dockerfile

WSO2 ESB 4.8.1 Dockerfile defines required resources for building a Docker image with WSO2 ESB 4.8.1.

## How to build

(1) Copy ESB 4.8.1 binary pack and the template module to the packages folder:

* [wso2esb-4.8.1.zip](http://wso2.com/products/enterprise-service-bus/)
* [wso2esb-4.8.1-template-module] (https://github.com/wso2/private-paas-cartridges/blob/master/wso2esb/4.8.1/template-module)

(2) Build kubernetes membership scheme and copy JAR files to the template module:
```
git clone https://github.com/imesh/carbon-membership-schemes.git
cd carbon-membership-schemes/kubernetes/kubernetes-mscheme-carbon42
mvn clean install
cd target/
unzip kubernetes-mscheme-carbon42-<version>.zip
unzip <esb-template-module>
pushd kubernetes-mscheme-carbon42-<version>/lib
cp *.jar <esb-template-module>/files/repository/componentes/lib
zip <esb-template-module>
```

(4) Run build.sh file to build the docker image: 
```
sh build.sh
```

(5) Save docker image to a local folder:
```
sh save.sh
```
<commit_msg>Updating wso2esb-4.8.1 dockerfile README.md<commit_after># WSO2 ESB 4.8.1 Dockerfile

WSO2 ESB 4.8.1 Dockerfile defines required resources for building a Docker image with WSO2 ESB 4.8.1.

## How to build

(1) Copy ESB 4.8.1 binary pack to the packages folder:

* [wso2esb-4.8.1.zip](http://wso2.com/products/enterprise-service-bus/)

(2) Copy kubernetes membership scheme to the artifacts/repository/components/lib folder.


(3) Run build.sh file to build the docker image: 
````
sh build.sh [docker-image-version]
````

(5) Save docker image to a local folder:
````
sh save.sh [docker-image-version]
````

{'fraction_non_alphanumeric': 0.13072289156626507, 'fraction_numerical': 0.04036144578313253, 'mean_word_length': 4.306709265175719, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '903127', 'n_tokens_mistral': 639, 'n_tokens_neox': 594, 'n_words': 166}