sapcc/Dockerfile

53 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
2021-06-16 21:28:16 +00:00
ARG SAPCC_VERSION=2.13.1
ARG SAPJVM_VERSION=8.1.075
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
RUN yum -y update && yum -y clean all
2021-06-18 08:18:49 +00:00
# add EPEL repo
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
2021-06-18 08:18:49 +00:00
# install some usefull tools
RUN yum -y install which unzip wget net-tools less sudo
2021-06-18 08:18:49 +00:00
# download the SAP JVM and SAPCC
2021-06-16 21:28:16 +00:00
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 && \
unzip sapcc-$SAPCC_VERSION-linux-x64.zip && \
rpm -i sapjvm-$SAPJVM_VERSION-linux-x64.rpm && \
rpm -i com.sap.scc-ui-$SAPCC_VERSION-8.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