forked from daniele-pecora/sap-abap-dev-edition-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
52 lines (38 loc) · 1.25 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
FROM opensuse/leap:latest
ENV LANG=en_US.UTF-8
RUN zypper --non-interactive install --replacefiles which hostname expect net-tools iputils wget vim iproute2 unrar less tar gzip uuidd tcsh libaio
# uuidd is needed by nw abap
RUN mkdir /run/uuidd && chown uuidd /var/run/uuidd && /usr/sbin/uuidd
# Copy resources
COPY /resources/INSTALL_README.MD /tmp/sapdownloads/
COPY sapdownloads /tmp/sapdownloads/
# FIXES
# missing packages
RUN zypper --non-interactive install --replacefiles gcc insserv-compat
# recognition of a valid SuSE distro
RUN echo -e "\
SUSE Linux Enterprise Server 12 (x86_64)\n\
VERSION = 12\n\
PATCHLEVEL = 1\n\
#this file is only required for SAP installation to recognize a SuSE release version\n\
" > /etc/SuSE-release
#
COPY /resources/install-quiet.sh /tmp/sapdownloads/
COPY /resources/instructions /tmp/sapdownloads/
RUN mv /tmp/sapdownloads/install.sh /tmp/sapdownloads/org_install.sh
RUN ln -s /tmp/sapdownloads/install-quiet.sh /tmp/sapdownloads/install.sh
RUN ln /tmp/sapdownloads/instructions /root/.bashrc
# /FIXES
WORKDIR /tmp/sapdownloads
RUN chmod +x install-quiet.sh
# Important ports to be exposed (TCP):
# HTTP
EXPOSE 8000
# HTTPS
EXPOSE 44300
# ABAP in Eclipse
EXPOSE 3300
# SAP GUI
EXPOSE 3200
# SAP Cloud Connector
EXPOSE 8443