-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
64 lines (47 loc) · 2.18 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Dockerfile for SAP HANA server
FROM opensuse
# FROM openjdk:jdk-alpine
MAINTAINER Tuan Vo <vohungtuan@gmail.com>
# Install tools
RUN set -x \
&& cat /etc/os-release \
&& zypper install -y curl tar gzip openssl java-1_8_0-openjdk-devel
# Download HANA
## SAP HANA 2.0, express edition download manager
# https://www.sap.com/cmp/ft/crm-xu16-dat-hddedft/typ.html
# Linux
# https://d149oh3iywgk04.cloudfront.net/dwnldmgr/HANA2latest/HXEDownloadManager_linux.bin
# Windows
# https://d149oh3iywgk04.cloudfront.net/dwnldmgr/HANA2latest/HXEDownloadManager_win.exe
# Platform-independent
# https://d149oh3iywgk04.cloudfront.net/dwnldmgr/HANA2latest/HXEDownloadManager.jar
# RUN set -x \
# && mkdir -p /opt/tmp/ \
# && cd /opt/tmp/ \
# && curl -OLS https://d149oh3iywgk04.cloudfront.net/dwnldmgr/HANA2latest/HXEDownloadManager_linux.bin \
# && curl -OLS https://d149oh3iywgk04.cloudfront.net/dwnldmgr/HANA2latest/HXEDownloadManager.jar
## SAP HANA 2.0, express edition Binary Installer
# Getting Started with SAP HANA, express edition (Binary Installer Method)
# https://d149oh3iywgk04.cloudfront.net/hanaexpress/HANA2latest/linuxx86-64/Getting_Started_HANAexpress_Binary_Installer.pdf
# Server only installer - Server with Application Function Library
# https://d149oh3iywgk04.cloudfront.net/hanaexpress/HANA2latest/linuxx86-64/tar/hxe.tgz
# Applications - Applications including XSA, WebIDE, Cockit, and EA Designer
# https://d149oh3iywgk04.cloudfront.net/hanaexpress/HANA2latest/linuxx86-64/tar/hxexsa.tgz
# Clients - HDB and XSA clients for Linux and Windows
# https://d149oh3iywgk04.cloudfront.net/hanaexpress/HANA2latest/linuxx86-64/common/clients.zip
RUN set -x \
&& mkdir -p /opt/tmp/ \
&& cd /opt/tmp/ \
&& curl -v --header "x-amz-meta-description: Server only installer" -OLS https://d149oh3iywgk04.cloudfront.net/hanaexpress/HANA2latest/linuxx86-64/tar/hxe.tgz
# Install HANA
RUN set -x \
&& cd /opt/tmp/ \
&& ls -la \
&& tar zxvf hxe.tgz \
&& ls -la \
&& ls -Rla
# ENTRYPOINT ["/docker-entrypoint.sh"]
# CMD []
# EXPOSE 5000
# Remove tmp
RUN find /opt/tmp/ -type f | xargs -L1 rm -f