v2 : add comments + full update of CentOS + EPEL repo added
This commit is contained in:
parent
8456424cb0
commit
d15e0d72d9
1 changed files with 17 additions and 3 deletions
20
Dockerfile
20
Dockerfile
|
@ -1,18 +1,32 @@
|
||||||
|
# CentOS7, as EoL is on 2024 ...
|
||||||
FROM centos:7
|
FROM centos:7
|
||||||
|
# SAPJVM and SAPCC version
|
||||||
|
# check https://tools.hana.ondemand.com/#cloud
|
||||||
ARG SAPCC_VERSION=2.13.1
|
ARG SAPCC_VERSION=2.13.1
|
||||||
ARG SAPJVM_VERSION=8.1.075
|
ARG SAPJVM_VERSION=8.1.075
|
||||||
|
# working setup dir
|
||||||
WORKDIR /tmp/sapcc
|
WORKDIR /tmp/sapcc
|
||||||
#RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
# full update
|
||||||
RUN yum -y install which unzip wget net-tools less sudo; yum clean all
|
RUN yum -y update && yum -y clean all
|
||||||
|
# add EPEL repo
|
||||||
|
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
||||||
|
# install some usefull tools
|
||||||
|
RUN yum -y install which unzip wget net-tools less sudo
|
||||||
|
# download the SAP JVM and SAPCC
|
||||||
RUN wget --no-check-certificate --no-cookies --header "Cookie: eula_3_1_agreed=tools.hana.ondemand.com/developer-license-3_1.txt; path=/;" -S https://tools.hana.ondemand.com/additional/sapcc-$SAPCC_VERSION-linux-x64.zip && \
|
RUN wget --no-check-certificate --no-cookies --header "Cookie: eula_3_1_agreed=tools.hana.ondemand.com/developer-license-3_1.txt; path=/;" -S https://tools.hana.ondemand.com/additional/sapcc-$SAPCC_VERSION-linux-x64.zip && \
|
||||||
wget --no-check-certificate --no-cookies --header "Cookie: eula_3_1_agreed=tools.hana.ondemand.com/developer-license-3_1.txt; path=/;" -S https://tools.hana.ondemand.com/additional/sapjvm-$SAPJVM_VERSION-linux-x64.rpm && \
|
wget --no-check-certificate --no-cookies --header "Cookie: eula_3_1_agreed=tools.hana.ondemand.com/developer-license-3_1.txt; path=/;" -S https://tools.hana.ondemand.com/additional/sapjvm-$SAPJVM_VERSION-linux-x64.rpm && \
|
||||||
unzip sapcc-$SAPCC_VERSION-linux-x64.zip && \
|
unzip sapcc-$SAPCC_VERSION-linux-x64.zip && \
|
||||||
rpm -i sapjvm-$SAPJVM_VERSION-linux-x64.rpm && \
|
rpm -i sapjvm-$SAPJVM_VERSION-linux-x64.rpm && \
|
||||||
rpm -i com.sap.scc-ui-$SAPCC_VERSION-8.x86_64.rpm
|
rpm -i com.sap.scc-ui-$SAPCC_VERSION-8.x86_64.rpm
|
||||||
|
# clean up previously installed rpm packages
|
||||||
RUN rm /tmp/sapcc/*.rpm
|
RUN rm /tmp/sapcc/*.rpm
|
||||||
|
# set JAVA_HOME variable with the new SAP JVM
|
||||||
ENV JAVA_HOME=/opt/sapjvm_8/
|
ENV JAVA_HOME=/opt/sapjvm_8/
|
||||||
#RUN chsh -s /bin/bash sccadmin
|
# SAPCC Web Interface
|
||||||
EXPOSE 8443
|
EXPOSE 8443
|
||||||
|
# SAPCC user
|
||||||
USER sccadmin
|
USER sccadmin
|
||||||
|
# SAPCC working dir
|
||||||
WORKDIR /opt/sap/scc
|
WORKDIR /opt/sap/scc
|
||||||
|
# run SAPCC command
|
||||||
CMD ./go.sh
|
CMD ./go.sh
|
||||||
|
|
Loading…
Reference in a new issue