Initial OC setup
This commit is contained in:
parent
12239ff76e
commit
c09e682e72
25
Dockerfile
Executable file
25
Dockerfile
Executable file
@ -0,0 +1,25 @@
|
||||
# NAME ibm/spectrumprotect-oc
|
||||
# VERSION 8.1.1
|
||||
# BUILD docker build -t="leenooks/spectrumprotect-oc" .
|
||||
|
||||
FROM centos:7
|
||||
|
||||
# OS Installation Prerequisites
|
||||
RUN yum -y install http://yum.leenooks.net/CentOS/7/base/redhat-release-7-6.el7.centos.12.2.x86_64.rpm libaio ksh compat-libstdc++-33 numactl && yum clean all && rm -rf /var/tmp/*
|
||||
|
||||
COPY install-oc.xml /tmp/
|
||||
|
||||
# Installation
|
||||
RUN SOURCE_URL=http://YOUR_SITE_URL_HERE && \
|
||||
mkdir -p /tmp/build && cd /tmp/build && \
|
||||
curl -SL ${SOURCE_URL}/8.1.1 > tsm && \
|
||||
chmod +x tsm && ./tsm && rm -f tsm && \
|
||||
./install.sh -s -input /tmp/install-oc.xml -acceptLicense && \
|
||||
rm -rf /tmp/build /tmp/install*xml
|
||||
|
||||
COPY init /sbin/
|
||||
|
||||
# Our final docker parameters
|
||||
EXPOSE 11443
|
||||
ENTRYPOINT [ "/sbin/init" ]
|
||||
CMD [ "start" ]
|
21
init
Executable file
21
init
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
NAME="SP"
|
||||
|
||||
function stop {
|
||||
echo "Stopping ${NAME}"
|
||||
/opt/tivoli/tsm/ui/Liberty/bin/opscenter.rc stop
|
||||
}
|
||||
|
||||
trap 'stop' SIGTERM
|
||||
|
||||
if [ "$1" == "start" ]; then
|
||||
/opt/tivoli/tsm/ui/Liberty/bin/opscenter.rc start
|
||||
|
||||
( while ps -p $(cat /opt/tivoli/tsm/ui/Liberty/usr/servers/.pid/guiServer.pid) >/dev/null; do sleep 600; done ) &
|
||||
|
||||
wait
|
||||
else
|
||||
exec $@
|
||||
fi
|
112
install-oc.xml
Executable file
112
install-oc.xml
Executable file
@ -0,0 +1,112 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<agent-input clean="true" temporary="true">
|
||||
|
||||
<variables>
|
||||
<!--@ATTENTION@ Select your product license before doing a silent install. -->
|
||||
<!-- Enter 'tsm' for the value of license.selection to accept the IBM Tivoli Storage Manager license -->
|
||||
<!-- Enter 'tsmee' for the value of license.selection to accept the IBM Tivoli Storage Manager Extended Edition license -->
|
||||
<!-- Enter 'ssam' for the value of license.selection to accept the IBM System Storage Archive Manager license -->
|
||||
<variable name='license.selection' value='tsmee'/>
|
||||
|
||||
<!-- Set these variables if you are installing the OC.-->
|
||||
<variable name="port" value="11443" />
|
||||
<variable name="ssl.password" value="" />
|
||||
|
||||
<!-- Update the value of installDir to change the installation directory.-->
|
||||
<variable name='installDir' value='/opt/tivoli/tsm'>
|
||||
<!-- For Windows, update this value to change the installation directory.-->
|
||||
<if name='platform:os' equals='win32' value='C:\Program Files\Tivoli\TSM'/>
|
||||
</variable>
|
||||
</variables>
|
||||
|
||||
<server>
|
||||
<repository location='repository'/>
|
||||
</server>
|
||||
|
||||
<profile id='IBM Tivoli Storage Manager' installLocation='${installDir}' >
|
||||
<data key='user.license,com.tivoli.dsm.server' value='${license.selection}'/>
|
||||
|
||||
<!-- @ATTENTION@ If you are upgrading an exsting server instance, replace <instanceName>-->
|
||||
<!-- with the instance name you are upgrading below. If you are upgrading multiple instances -->
|
||||
<!-- you can add additional instanceName_update and instanceName_password lines below for each -->
|
||||
<!-- additional instance. -->
|
||||
<!--data key='user.<instanceName>_update,com.tivoli.dsm.server' value='true'/-->
|
||||
<!-- Update this value with the instance users password. -->
|
||||
<!--data key='user.<instanceName>_password,com.tivoli.dsm.server' value=''/-->
|
||||
|
||||
<!-- Operations Center profile variables. -->
|
||||
<data key="user.securePortNumber,com.tivoli.dsm.gui.offering" value="${port}" />
|
||||
<data key="user.SSL_PASSWORD" value="T$M4Ev3ryB0dY!" />
|
||||
|
||||
</profile>
|
||||
<install modify='false'>
|
||||
|
||||
<!-- This will install the server offering -->
|
||||
<offering id='com.tivoli.dsm.server'
|
||||
profile='IBM Tivoli Storage Manager'
|
||||
features='com.tivoli.dsm.server.main'
|
||||
installFixes='none' selected='false'/>
|
||||
|
||||
<!-- Change selected='false' to skip install of the storage agent offering -->
|
||||
<offering id='com.tivoli.dsm.stagent'
|
||||
profile='IBM Tivoli Storage Manager'
|
||||
features='com.tivoli.dsm.stagent.main'
|
||||
installFixes='none' selected='false'/>
|
||||
|
||||
<!-- Change selected='false' to skip install of the device offering -->
|
||||
<offering id='com.tivoli.dsm.devices'
|
||||
profile='IBM Tivoli Storage Manager'
|
||||
features='com.tivoli.dsm.devices.main'
|
||||
installFixes='none' selected='false'/>
|
||||
|
||||
<!-- This will install the license offering -->
|
||||
<!--
|
||||
<offering id='com.tivoli.dsm.license'
|
||||
profile='IBM Tivoli Storage Manager'
|
||||
features='com.tivoli.dsm.license.main'
|
||||
installFixes='none' selected='false'/>
|
||||
-->
|
||||
|
||||
<!-- Change selected='false' to skip install of the Language offering -->
|
||||
<!-- Language Feature names:
|
||||
com.tivoli.dsm.lang.spanish
|
||||
com.tivoli.dsm.lang.portuguese
|
||||
com.tivoli.dsm.lang.german
|
||||
com.tivoli.dsm.lang.french
|
||||
com.tivoli.dsm.lang.italian
|
||||
com.tivoli.dsm.lang.russian
|
||||
com.tivoli.dsm.lang.japanese
|
||||
com.tivoli.dsm.lang.korean
|
||||
com.tivoli.dsm.lang.tchinese
|
||||
com.tivoli.dsm.lang.schinese
|
||||
-->
|
||||
|
||||
<offering id='com.tivoli.dsm.lang'
|
||||
profile='IBM Tivoli Storage Manager'
|
||||
features=''
|
||||
installFixes='none' selected='false'/>
|
||||
|
||||
<!-- Change selected='false' to skip install of the Operation center offering -->
|
||||
<offering id='com.tivoli.dsm.gui.offering'
|
||||
profile='IBM Tivoli Storage Manager'
|
||||
features='com.tivoli.dsm.gui.main_asm,com.ibm.java.jre'
|
||||
installFixes='none' selected='true'/>
|
||||
</install>
|
||||
|
||||
<preference name='com.ibm.cic.common.core.preferences.connectTimeout' value='30'/>
|
||||
<preference name='com.ibm.cic.common.core.preferences.readTimeout' value='45'/>
|
||||
<preference name='com.ibm.cic.common.core.preferences.downloadAutoRetryCount' value='0'/>
|
||||
<preference name='offering.service.repositories.areUsed' value='false'/>
|
||||
<preference name='com.ibm.cic.common.core.preferences.ssl.nonsecureMode' value='false'/>
|
||||
<preference name='com.ibm.cic.common.core.preferences.http.disablePreemptiveAuthentication' value='false'/>
|
||||
<preference name='http.ntlm.auth.kind' value='NTLM'/>
|
||||
<preference name='http.ntlm.auth.enableIntegrated.win32' value='true'/>
|
||||
<preference name='com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts' value='false'/>
|
||||
<preference name='com.ibm.cic.common.core.preferences.keepFetchedFiles' value='false'/>
|
||||
<preference name='PassportAdvantageIsEnabled' value='false'/>
|
||||
<preference name='com.ibm.cic.common.core.preferences.searchForUpdates' value='false'/>
|
||||
<preference name='com.ibm.cic.agent.ui.displayInternalVersion' value='false'/>
|
||||
<preference name='com.ibm.cic.common.sharedUI.showErrorLog' value='true'/>
|
||||
<preference name='com.ibm.cic.common.sharedUI.showWarningLog' value='true'/>
|
||||
<preference name='com.ibm.cic.common.sharedUI.showNoteLog' value='true'/>
|
||||
</agent-input>
|
Reference in New Issue
Block a user