sapcc/Dockerfile

49 lines
1.7 KiB
Text
Raw Normal View History

2021-06-18 08:18:49 +00:00
# -----------------------------------------------------------------------------
# SAP Cloud Connector Dockerfile
# Author : Francois B (Makoto)
# Github : https://github.com/shakasan/sapcc
# Docker Hub : https://hub.docker.com/r/makoto2600/sapcc
# Licence : GPLv3
# -----------------------------------------------------------------------------
# CentOS7, as EoL is on 2024 ...
2021-06-16 21:28:16 +00:00
FROM centos:7
2021-06-18 08:18:49 +00:00
# SAPJVM and SAPCC version
# check https://tools.hana.ondemand.com/#cloud
2022-11-24 18:09:21 +00:00
ARG SAPCC_VERSION=2.15.0
ARG SAPJVM_VERSION=8.1.091
2021-06-18 08:18:49 +00:00
# working setup dir
2021-06-16 21:28:16 +00:00
WORKDIR /tmp/sapcc
2021-06-18 08:18:49 +00:00
# full update + add EPEL repo + install some useful tools
RUN yum -y update && yum -y clean all && \
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
yum -y install which unzip wget net-tools less sudo
2021-06-18 08:18:49 +00:00
# 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 && \
2021-06-16 21:28:16 +00:00
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 && \
2021-06-16 21:28:16 +00:00
rpm -i sapjvm-$SAPJVM_VERSION-linux-x64.rpm && \
2022-11-24 18:09:21 +00:00
rpm -i com.sap.scc-ui-$SAPCC_VERSION-16.x86_64.rpm
2021-06-18 08:18:49 +00:00
# clean up previously installed rpm packages
2021-06-16 21:28:16 +00:00
RUN rm /tmp/sapcc/*.rpm
2021-06-18 08:18:49 +00:00
# set JAVA_HOME variable with the new SAP JVM
2021-06-16 21:28:16 +00:00
ENV JAVA_HOME=/opt/sapjvm_8/
2021-06-18 08:18:49 +00:00
# SAPCC Web Interface
2021-06-16 21:28:16 +00:00
EXPOSE 8443
2021-06-18 08:18:49 +00:00
# SAPCC user
2021-06-16 21:28:16 +00:00
USER sccadmin
2021-06-18 08:18:49 +00:00
# SAPCC working dir
2021-06-16 21:28:16 +00:00
WORKDIR /opt/sap/scc
2021-06-18 08:18:49 +00:00
# run SAPCC command
2021-06-16 21:28:16 +00:00
CMD ./go.sh