-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (38 loc) · 973 Bytes
/
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
FROM debian:stretch as debianSap
RUN apt-get update && apt-get install -y \
curl \
unzip \
coreutils \
nano \
vim \
&& rm -rf /var/lib/apt/lists/*
RUN curl \
--cookie "eula_3_1_agreed=tools.hana.ondemand.com/developer-license-3_1.txt" \
https://tools.hana.ondemand.com/additional/sapjvm-8.1.078-linux-x64.zip \
-o sapjvm8.zip \
&& \
unzip sapjvm8.zip \
&& \
rm sapjvm8.zip
RUN curl \
--cookie "eula_3_1_agreed=tools.hana.ondemand.com/developer-license-3_1.txt" \
https://tools.hana.ondemand.com/sdk/neo-java-web-sdk-3.134.8.zip \
-o neo-java-web-sdk.zip \
&& \
mkdir neo-java-web-sdk \
&& \
unzip neo-java-web-sdk.zip -d neo-java-web-sdk \
&& \
rm neo-java-web-sdk.zip
COPY src/scripts /scripts/
RUN chmod a+x /scripts/*
ENV JAVA_HOME=/sapjvm_8
ENV SAPJVM_HOME=/sapjvm_8
ENV JRE_HOME=/sapjvm_8/jre
ENV UMASK=0000
RUN /scripts/run.sh init
COPY src/cfg/conf/* /tomcat/conf/
#EXPOSE 8080
#EXPOSE 8443
#EXPOSE 8009
CMD ["/scripts/run.sh", "run"]