- I need HANA to develop
- I have a dump (
EXPORT ... AS CSV INTO ...
) that I want to import - I want a turn-key solution
docker pull
the latest HANA Express Edition image from the Docker Store
Docker for Mac / Docker for Windows
Make sure to increase the RAM (at least 12GB), the CPU (4 cores) and, depending on your dump, the disk size of the Docker VM!
- Download this repository as zip
- Unpack
- Rename the folder to something more descriptive
- Dump the
post_start
hook scripts of the HANA image into this folderdocker create --name hana_dummy store/saplabs/hanaexpress:<version> docker cp hana_dummy:/hana/hooks/post_start . docker rm hana_dummy
- Adapt the HANA image version in
docker-compose.yml
- Upack the dump into a sub-folder of
./dump
, e.g../dump/SOURCE_SCHEMA
- Adapt the env vars in
docker-compose.yml
as necessary (checkpost_start/999_import_dump
to understand how they are used during bootstrap) - Tweak
post_start/999_import_dump
as necessary - (optional) Add some more shell scripts to
post_start
if you need other things executed during the database bootstrap docker-compose up
- Grab a pint of ☕ and wait until the database setup including dump import is done.
- This setup modifies the tenant database
- The
SYSTEM
password for both the system and the tenant (HXE) database isHXEHana1
db.url=jdbc:sap://localhost:39041/?databaseName=HXE&reconnect=true&statementCacheSize=512
db.driver=com.sap.db.jdbc.Driver
db.username=LOCALDEV
db.password=Localdev1
hanadb.storage.columnbased=true