-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from xmigrate/jboss_cmigrate
adding support to jboss
- Loading branch information
Showing
3 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,42 @@ | ||
# xmigrate_cli | ||
VM to container migration tool | ||
|
||
# Overview | ||
Cmigrate is an open-source project for migrating your VM-based application deployments to container. Cmigrate is a CLI based tool wriitten in python which can discover the application runtime on the server and generate a docker file and the application artifacts to containerize. | ||
|
||
## Current release | ||
--- | ||
|
||
We have shipped cmigrate with the following features : | ||
|
||
- Automatic Environment discovery | ||
- Option to select from multiple environments | ||
- Automatically collect the application-related environment variable and configurations | ||
- Generates docker file for containerization of the application | ||
- Support for tomcat and jboss based application | ||
|
||
|
||
> 💡 *Currently cmigrate only support tomcat and Jboss. We will add support for more application in the forthcoming releases. | ||
|
||
## Tech stack | ||
Cmigrate is build on the below tech stack | ||
- Click python framework | ||
- Jinja web template engine | ||
|
||
|
||
All the code for cmigrate is written in python. Jinja is a web template engine for the Python programming language and it is used to create the template for generating a docker file. Click is a Python package for creating command-line interfaces. | ||
|
||
## Future Roadmap | ||
- Support for more applications runtimes | ||
|
||
## 🚀How to run? | ||
|
||
Run the cmigrate.py file. | ||
|
||
``` | ||
python3 cmigrate.py | ||
``` | ||
|
||
if you have multiple application runtime running you can pass one in --runtime parameter. | ||
|
||
Stay tuned for more updates 🎉 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM registry.access.redhat.com/jboss-eap-7/eap71-openshift | ||
LABEL maintainer="xmigrate.cloud" | ||
{% for artefact in artefacts.APP_DIR %} | ||
COPY {{ artefact }} standalone/deployments | ||
{% endfor %} | ||
COPY {{ artefacts.APP_CONFIG }} /bin/standalone/configuration/standalone.xml | ||
EXPOSE {{ artefacts.APP_PORT }} | ||
CMD ["standalone.sh", "run"] |