Public Repository

Last pushed: 10 months ago
Short Description
Docker container providing an SAP HANA Express Edition on SUSE Linux image
Full Description

Introduction

This is an experimental repo designed to explore the possibility of providing the newly released SAP HANA Express Edition from within a docker container.

Whether or not this is possible and if so, how to achieve this is the goal and the why this repo was created.

The question of sense, that is "does it make sense to run SAP HANA from a docker image?" will probably not be in focus too much, but who knows :-)

Build instructions

Choose the desired state from the roadmap, copy the Dockerfile content that corresponds to your version, you will usually want to use the latest, and create an empty directory with the Dockerfile in it.

CD into the directory with the docker file and execute

docker build -t hxe .

Run instructions

To start a container, pull the image and execute

docker run --privileged --rm -ti -e 'container=docker' -h hxehost --network="bridge" --tmpfs /run --tmpfs /tmp -v /sys/fs/cgroup:/sys/fs/cgroup:ro siliconchris/hxe:v0.0.2 /bin/bash

Login as root with passed docker1

Roadmap

  • Version 0.0.1 Installs additional software components on top of opensuse/amd64
  • Version 0.0.2 Adds volumes for tempfs plus installs libopenssl-0.9.8 and ifconfig

Future releases

  • Version 0.0.3 Adds binary installer and configuration settings for SAP HANA Express Edition
  • Version 0.0.4 Will, hopefully, have the SAP HANA Express Edition installed and
  • Version 0.0.5 May have a SAP HANA Express Edition that is automatically started upon creation

Versions

Version v0.0.1

The image hxe:0.0.1 was created based on opensuse/amd64:latest with the following additions/changes:

  • installed additional software
    -- apache2
    -- apache2-mod_security2
    -- autoyast2
    -- gcc
    -- git-core
    -- hostname
    -- Open JDK 8
    -- libltdl7
    -- libnuma1
    -- libnuma-devel
    -- make
    -- mariadb
    -- mariadb-client
    -- openssl
    -- perl
    -- python
    -- ruby
    -- sudo
    -- util-linux
    -- util-linux-systemd
    -- uuidd
    -- vim
    -- wget
  • created directories
    -- /usr/sap
    -- /usr/sap/SRCFiles
    -- /hana/shared
  • Exposes ports 8000 and 30075

Version v0.0.2

Is build on top of v0.0.1 with the following additions

  • Created Volumes
    -- /sys/fs/cgroup
    -- /run
    -- /tmp
  • Installed software
    -- ifconfig (manually from rpm)
    -- libopenssl0_9_8

Version v0.0.3

Is build on top of v0.0.2 with the following additions

  • Copied the SAP HANA Express Edition Binary Installer file to /usr/sap/SRCFiles:
    -- hxe.tgz
    -- hxeoptimize.sh
    -- hxexsa.tgz
  • Extracted tgz-files in /usr/sap/SRCFiles

Dockerfiles

Dockerfile for image v0.0.1

FROM opensuse/amd64:latest
MAINTAINER Christian Günther <christian.guenther@comlineag.de>
LABEL de.comlineag.version="0.0.1-beta"
LABEL vendor="COMLINE Computer + Softwareloesungen AG"
LABEL de.comlineag.release-date="2016-11-09"
LABEL de.comlineag.version.is-production=""
LABEL Description="This image is used to host a SAP HANA Express Edition"
LABEL Version="0.0.1-beta"
ENV hostname=hxehost
RUN echo "${hostname} > /etc/hostname"
EXPOSE 8000
EXPOSE 30075
RUN zypper --gpg-auto-import-keys ref -s
RUN zypper -n in apache2 \
  apache2-mod_security2 \
  autoyast2 \
  gcc \
  git-core \
  hostname \
  java \
  libltdl7 \
  libnuma1 \
  libnuma-devel \
  make \
  mariadb \
  mariadb-client \
  openssl \
  perl \
  python \
  ruby \
  sudo \
  util-linux \
  util-linux-systemd \
  uuidd \
  vim \
  wget
RUN zypper -n up
RUN mkdir -p /usr/sap
RUN mkdir -p /usr/sap/SRCFiles
RUN mkdir -p /hana/shared

Dockerfile for image v0.0.2

FROM siliconchris/hxe:v0.0.1
MAINTAINER Christian Günther <christian.guenther@comlineag.de>
LABEL de.comlineag.version="0.0.2-beta"
LABEL vendor="COMLINE Computer + Softwareloesungen AG"
LABEL de.comlineag.release-date="2016-11-10"
LABEL de.comlineag.version.is-production=""
LABEL Description="This image is used to host a SAP HANA Express Edition"
LABEL Version="0.0.2-beta"
VOLUME /sys/fs/cgroup /run /tmp
RUN zypper -n in libopenssl0_9_8 
ENV container=docker

Dockerfile for image v0.0.3

FROM siliconchris/hxe:v0.0.2
MAINTAINER Christian Günther <christian.guenther@comlineag.de>
LABEL de.comlineag.version="0.0.3-beta"
LABEL vendor="COMLINE Computer + Softwareloesungen AG"
LABEL de.comlineag.release-date="2016-11-10"
LABEL de.comlineag.version.is-production=""
LABEL Description="This image is used to host a SAP HANA Express Edition"
LABEL Version="0.0.3-beta"
COPY resources /usr/sap/SRCFiles/
WORKDIR /usr/sap/SRCFiles
RUN tar -xzf /usr/sap/SRCFiles/hxe.tgz -C /usr/sap/SRCFiles
RUN tar -xzf /usr/sap/SRCFiles/hxexsa.tgz -C /usr/sap/SRCFiles
Docker Pull Command
Owner
siliconchris

Comments (1)
raovedula
8 months ago

Thanks a lot. looking forward to Version 0.0.5