-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
30 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
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,13 +1,45 @@ | ||
## docker images for NodeJS and Python RFC Connectivity | ||
## NodeJS and Python RFC Connectivity | ||
|
||
- [Node on Centos](./centos-node.Dockerfile) | ||
- [Python on Centos](./centos-python.Dockerfile) | ||
- [python:3.9-slim-buster](./python-39.Dockerfile) | ||
- [Node/Python on Ubuntu](./ubuntu-test.Dockerfile) | ||
- [abap-api-tools](./abap-node.Dockerfile) | ||
|
||
> SAP NWRFC SDK is not a part of these images and must not distributed with custom images or applications. | ||
> SAP NWRFC SDK is not a part of these images and must not be packed into externaly distributed images or applications. | ||
Exclusive distribution channel is: [SAP NWRFC SDK on SAP Support Portal](https://launchpad.support.sap.com/#/softwarecenter/template/products/_APP=00200682500000001943&_EVENT=DISPHIER&HEADER=Y&FUNCTIONBAR=N&EVENT=TREE&NE=NAVIGATE&ENR=01200314690100002214&V=MAINT) | ||
|
||
More info: https://support.sap.com/en/product/connectors/nwrfcsdk.html | ||
More info: https://support.sap.com/en/product/connectors/nwrfcsdk.html | ||
|
||
## abap-api-tools | ||
|
||
`abap` CLI can run also from docker container, mapped to your local working folder. | ||
|
||
Prepare the working directory: | ||
|
||
```shell | ||
mkdir myproject | ||
cd myproject | ||
edit sapnwrfc.ini | ||
``` | ||
|
||
Docker image with pre-installed SAP NWRFC SDK is available in SAP-internal network only ([link](https://docker.wdf.sap.corp:10443/artifactory/webapp/#/packages/docker/vpcoe~2Fabap-api-tools)). The local working directory `myproject` must be mapped to docker volume `work`: | ||
|
||
```shell | ||
docker pull docker.wdf.sap.corp:51689/vpcoe/abap-api-tools | ||
docker run --name cli -it -v <absolute path to>/myproject:/work --env ABAP_API_TOOLS_WORKING_FOLDER=/work docker.wdf.sap.corp:51689/vpcoe/abap-api-tools | ||
``` | ||
|
||
The container can be also built from [abap-node.Dockerfile](./abap-node.Dockerfile). SAP NWRFC SDK folder "nwrfcsdk" shall be in that case first copied to Dockerfile folder: | ||
|
||
```shell | ||
docker build --rm --no-cache -t abap-api-tools -f abap-node.Dockerfile . | ||
docker run --name cli -it -v <path to>/myproject:/work --env ABAP_API_TOOLS_WORKING_FOLDER=/work abap-api-tools | ||
``` | ||
|
||
Once the `cli` container is up and running, the `abap` CLI can be invoked: | ||
|
||
```shell | ||
docker start cli | ||
docker exec cli abap | ||
``` |
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