This image is designed as starting point to easily create an docker image for SAP HANA, express edition. In comes with all prerequisites and some infrastructure to run dockerized SAP HANA, express edition, but not SAP HANA itself. It is intended for quick development on top of SAP HANA only -- not for production!
The following versions of SAP HANA, express edition have been reported to work with the corresponding versions of this repository. If your version is not in the list, but works, please create a PR to add it.
SAP HANA, express edition | ingomuellernet/hana-express |
---|---|
2.00.045 | :hana-2.00.045 |
- docker
- gmake
- Java (for the SAP HANA, express edition downloader)
-
Clone the git repository of this docker image.
-
Download SAP HANA express edition. This is currently done with a download you can obtain from here. You'll need the file
hxe.tgz
, which you get by selectingBinary Installer
asImage
and thenServer only installer
in the list of compenents. Place the downloaded filehxe.tgz
into thedownload
folder of the git repository. -
Create a new docker image with SAP HANA, express edition inside:
make
-
Run the new image (as daemon, will be removed after it stopped):
docker run --rm -d --name my_hana_instance -p 39013:39013 -p 39015:39015 -p 39018:39018 -p 4390:4390 -p 8090:8090 -p 59013:59013 -p 59014:59014 hana-express
You can now connect to it and see how it comes up:
docker exec -it my_hana_instance bash sudo -iu hxeadm watch HDB info
Once it runs, you can connect to it via the command line client:
docker exec -it my_hana_instance sudo -iu hxeadm hdbsql -i 90 -u SYSTEM -p HanaExpress1
- For now, the instance information is hardcoded:
- System ID: HXE
- Instance number: 90
- Master password: HanaExpress1
- Hostname: (some hash provided by docker)
This is an attempt to document ways to trouble-shoot problems when porting this approach to new version of HANA express or OpenSUSE.
- If the installer fails, run
hdbinst
(currently inHANA_EXPRESS_20/DATA_UNITS/HDB_SERVER_LINUX_X86_64
after downloading and extracting the installer) directly. When it fails, a path to a log file is printed, which may contain useful information.