SAP NetWeaver ABAP Developer Edition in Docker.
The Dockerfile works for the NW750 and NW751 as well as for the new (Sep 2018) NW752 trial from SAP. To install the NetWeaver 7.52 SP01 trial, use the Dockerfile and store the downloaded and extracted rar files from SAP in the folder NW752.
A detailed blog on how to get this image and container up and running can be found on my blog: DOCKERFILE FOR SAP NETWEAVER ABAP 7.5X DEVELOPER EDITION
To be able to setup the Docker container with just one command, make sure to read my blog ADJUST IMAGE SIZE OF DOCKER QCOW2 FILE . SAP NetWeaver is somewhat too large for Docker, and you can get a no space left on device error when installing it on a default Docker installation. The blog expains how to increase the Docker image file size by 100G, allowing to setup SAP NetWeaver ABAP by just running docker build -t abap .
-
Download your version of SAP NetWeaver ABAP 7.5x Developer Edition from SAP. The files are compressed (RAR). Un-compress them into a folder named NW752. The folder must be at the same location where your Dockerfile is.
-
Build the Docker image
This will install NW ABAP.
docker build -t nwabap .
- Start container
docker run -P -p 3200:3200 -p 3300:3300 -p 8000:8000 -p 44300:44300 -h vhcalnplci --privileged --name nwabap752 -it nwabap:latest /bin/bash
- Install NetWeaver
sysctl vm.max_map_count
sysctl -w vm.max_map_count=1000000
./install.sh -s
Alternativly you can also execute the run.sh script.
sysctl vm.max_map_count sysctl -w vm.max_map_count=1000000 ./run.sh
- Start NetWeaver
The above command will start the container and open a command prompt. While SAP NetWeaver ABAP is installed, it is not started automatically by the image. You need to start the server manually.
/usr/sbin/uuidd
su npladm
startsap
In case NW won't start and give an error like:
No instance profiles found
please send the tracefile /home/npladm/startsap.trc to support
Take a look at the hostname that SAP is using for the intsance.
more /usr/sap/NPL/SYS/profile/DEFAULT.PFL
Look for an entry like SAPGLOBALHOST = d0bbd590312c
In this case, the hostname sapstart is expecting is d0bbd590312c. Set the hostname of the container d0bbd590312c in /etc/hostname and it to /etc/hosts. Calling sapstart again should work, as the hostname is now correctly configured.
-
Done. NetWeaver ABAP is installed and ready to be used. Users, credentials, etc can be found in the fie readme.html shipped with the NetWeaver ABAP RAR files.
-
Start Container again
docker start -i nwabap752
/usr/sbin/uuidd
su npladm
startsap
https://github.com/nzamani/sap-nw-abap-trial-docker