https://github.com/php-sap/docker-kralik
PHP docker image for Gregor Kraliks SAPNWRFC module
https://github.com/php-sap/docker-kralik
docker docker-image dockerfile php php-module php7 php8 sap sap-netweaver-rfc sapnwrfc
Last synced: 3 months ago
JSON representation
PHP docker image for Gregor Kraliks SAPNWRFC module
- Host: GitHub
- URL: https://github.com/php-sap/docker-kralik
- Owner: php-sap
- License: mit
- Created: 2020-02-03T15:11:48.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T14:49:31.000Z (over 1 year ago)
- Last Synced: 2025-03-24T13:51:17.629Z (10 months ago)
- Topics: docker, docker-image, dockerfile, php, php-module, php7, php8, sap, sap-netweaver-rfc, sapnwrfc
- Language: PHP
- Homepage:
- Size: 25.4 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP docker image for SAP Netweaver RFC
This image compiles [Gregor Kraliks `sapnwrfc` PHP module][kralik] for PHP 8.x.
## Usage
**First you need to [download the SAP Netweaver][sapnwrfcsdk] RFC SDK 7.50 for
Linux and save it into this directory as `sapnwrfc-sdk-7.50.tar.gz`.**
Build default docker image based on `php:8.1-cli-bookworm`.
```shell script
docker build --pull --tag sapnwrfc:php-8.1 .
```
Copy `sap.template.json` to `sap.json` and enter your configuration.
Call RFC_PING on SAP remote system to test general functionality:
```shell script
docker run --rm -v "$(pwd)":/app --workdir /app sapnwrfc:php-8.1 php test.php
```
## Build other PHP 8.x based images
The [Dockerfile] allows you to choose the PHP version and the version of the SAPNWRFC module.
* `PHP_VERSION` - the [official PHP docker image tag]. Default: `php:8.1-cli-bookworm`
* `SAPNWRFC_VERSION` - a [version tag from Gregor Kraliks `sapnwrfc` PHP module]. Default: `2.1.0`
```shell script
docker build --pull --build-arg PHP_VERSION=8.1-cli --build-arg SAPNWRFC_VERSION=2.1.0 --tag sapnwrfc:php-8.1 .
```
## License
[MIT License](LICENSE)
Copyright (c) 2020 PHP/SAP
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
## Legal notice
SAP and other SAP products and services mentioned herein are trademarks or
registered trademarks of SAP SE (or an SAP affiliate company) in Germany and
other countries.
[kralik]: https://github.com/gkralik/php7-sapnwrfc "SAP NW RFC SDK extension for PHP7"
[sapnwrfcsdk]: https://gkralik.github.io/php7-sapnwrfc/installation.html#download-the-sap-nw-rfc-library "Download SAP Netweaver RFC SDK 7.50"
[Dockerfile]: Dockerfile
[official PHP docker image tag]: https://hub.docker.com/_/php/tags
[version tag from Gregor Kraliks `sapnwrfc` PHP module]: https://github.com/gkralik/php7-sapnwrfc/releases