SAP / migration-tool-for-cloud-integration

Tool to migrate your Cloud Integration content from Neo to Cloud Foundry.
Apache License 2.0
21 stars 3 forks source link
sap-cloud-integration sap-integration-suite

REUSE status

Migration tool for Cloud Integration

Description

This tool aims to assist SAP customers using SAP Cloud Integration on Neo datacenters who wish to upgrade to SAP Integration Suite on Multi-Cloud datacenters.

Important: There is an official migration pack available via SAP Note 2937549 which leverages a collection of Postman scripts. This Github repository is not related with the official migration pack mentioned in the SAP Note. However, the functionality is very similar:

This repo keeps track of versions via Tags:

This Github repository is an alternative tool which aims to achieve the same as the Postman collection while offering greater flexibility and control over your migration project. Areas where this tool provides an advantage over the Postman collection:

This tool is provided as-is and is not covered by SAP Support. A write-up about this tool can be found here: SAP Blog: Getting Grips on your Cloud Integration Migration from Neo to Cloud Foundry

Requirements

You will need:

If you don't have a SAP Integration Suite license yet, you can use the BTP Free Tier available at no cost. See https://blogs.sap.com/2021/11/17/sap-integration-suite-free-tier-is-now-available-on-sap-btp/

Download & Installation

This tool is designed to run locally on your own laptop, server or VM. It is developed using the SAP Cloud Application Programming Model, using Node.js as server language. It can also be hosted on SAP Business Technology Platform natively via CF, HC and Work Zone, or via Docker.

Locally stored data is kept in a local SQLite database file.

Use Docker

You can use the provided Dockerfile to install and run the application:

In Terminal or Command Prompt, run:

  1. Download this tool from git: git clone https://github.com/SAP/migration-tool-for-cloud-integration.git --depth 1
  2. Navigate into the root project folder: cd migration-tool-for-cloud-integration
  3. Install this tool: npm install
  4. Prepare/rebuild the SQLite database: cds deploy --to sqlite
  5. Build this tool: docker build -t migrationtool . (in case you receive an error on the Sqlite3 package, delete the package-lock.json file and try the build again)

Now the tool is built and can be started:

  1. Start the tool: docker run -p 4004:4004 migrationtool
  2. Open your local browser to: http://localhost:4004/home.html

To stop the tool, in Terminal or Command Prompt, press control-C

Locally on laptop

It is required to have an active installation of Node.js (version 20 or later), available from the Node.js website, including Node Package Manager (NPM). You can verify your installed version via node -v.

To install, in Terminal or Command Prompt, run:

  1. Install the SAP CAP SDK 'CDS-DK': npm i -g @sap/cds-dk
  2. Download this tool from git: git clone https://github.com/SAP/migration-tool-for-cloud-integration.git --depth 1
  3. Navigate into the root project folder: cd migration-tool-for-cloud-integration
  4. Install this tool: npm install
  5. Prepare/rebuild the SQLite database: cds deploy --to sqlite

Now the tool is installed and can be started:

  1. Start the tool: npm start
  2. Open your local browser to: http://localhost:4004/home.html

To stop the tool, in Terminal or Command Prompt, press control-C

Natively on BTP using Cloud Foundry, HANA Cloud/PostgresSQL and Work Zone

This option requires you to have a HANA Cloud database (or you can use Postgres), and a subscription to SAP Work Zone (standard edition)

Optional: The default MTA.yaml configuration specifies HANA Cloud. To switch to Postgres, do the following: 1. Change package.json hybrid > db > kind to 'postgres' 2. Change mta.yaml and change the 'requires' section of the srv module + disable the db-deployer in favor of the postgres-deployer, as well as the postgres db resource.

To install, in Terminal or Command Prompt, run:

  1. Install the SAP CAP SDK 'CDS-DK': npm i -g @sap/cds-dk
  2. Download this tool from git: git clone https://github.com/SAP/migration-tool-for-cloud-integration.git --depth 1
  3. Navigate into the root project folder: cd migration-tool-for-cloud-integration
  4. Install this tool: npm install
  5. Build the project: mbt build
  6. Deploy the project: cf deploy ./mta_archives/migrationtool_1.3.0.mtar

Now you can add the Fiori applications to your Work Zone site via the Work Zone Admin site:

  1. Sync your HTML5 repository
  2. Add the HTML5 apps to your content
  3. Assign the apps to a Group and Role
  4. Create a Site containing the Role

Now you can grant users access to the application via the BTP Cockpit Role Collections

  1. Assign the CF role CPI Migration Tool User
  2. Assign the front-end role created by you in the previous step

Now the tool can be accessed via Work Zone: To locally monitor the application logs, run the following command in Terminal: cf logs migrationtool-srv | grep -v RTR

To enable Hybrid mode, excute cds bind -2 migrationtool-db to use the HANA database and run your local application via cds watch --profile hybrid.

Documentation

To learn how to use the tool, please refer to the user documentation.

Version Dependencies

SAP UI5 version info and issue log

Specify the version to be used in /app/home.html

Version availability: https://ui5.sap.com/versionoverview.html

SAP CDS version info and issue log

More information on changelog: https://cap.cloud.sap/docs/releases

Known Issues

None so far, but please also refer to FAQ and Limitations

How to Obtain Support

Please search or create a new Issue in this Github repository to obtain support.

Contributing

Contributions are certainly welcome, see ways to contribute.

Code of Conduct

See Our Code of Conduct.

Licensing

Copyright 2021 SAP SE or an SAP affiliate company and migration-tool-for-cloud-integration contributors. Please see our LICENSE for copyright and license information.