Compare commits

...
This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.

4 Commits
master ... oc

Author SHA1 Message Date
Deon George 2db2cef7d5 Update for SP Server 8.1.9 2019-12-13 16:37:58 +11:00
Deon George dbcbdf68f3 Update for SP Server 8.1.7 2019-05-06 14:51:11 +10:00
Deon George 5e5cc1b0e9 Changed install password, the installer doesnt like exclamations! 2018-04-03 09:22:00 +10:00
Deon George c09e682e72 Initial OC setup 2018-03-11 11:48:17 +11:00
3 changed files with 162 additions and 0 deletions

29
Dockerfile Executable file
View File

@ -0,0 +1,29 @@
# NAME ibm/spectrumprotect-oc
# VERSION 8.1.9
# BUILD docker build -t="ibm/spectrumprotect-oc:latest" .
# Since SP is supported on RHEL and its not available in docker, we'll use CentOS.
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
# http://public.dhe.ibm.com/storage/tivoli-storage-management/maintenance/server/v8r1/Linux/8.1.?.???/x86_64/ ... for maintenance releases (without license files).
RUN SOURCE_URL=http://YOUR_SITE_URL_HERE SOURCE=8.1.9.000-IBM-SPSRV-Linuxx86_64.bin && \
mkdir -p /tmp/build && cd /tmp/build && \
curl -SL ${SOURCE_URL}/${SOURCE} > 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" ]
# Fix OC startup, since it cant find liberty
RUN sed -i 's#^installPath=#installPath=/opt/tivoli/tsm/ui#' /opt/tivoli/tsm/ui/Liberty/bin/opscenter.rc

21
init Executable file
View 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 Normal file
View 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="T$M4Ev3ryB0dY+" />
<!-- 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>