This project is used to build a docker image for NetApp OCUM 7.1.
More informations about OCUM can be found here :
http://www.netapp.com/us/products/management-software/oncommand/unified-manager.aspx
This Dockerfile uses a number of tricks to make OCUM rpm believe they are being installed on a RHEL 7 system, and make sure all the commands executed during the installation do not fail.
Especially, it works around :
- Memory check to make the installer believe we have the necessary RAM
- systemctl limitation that prevents it to run in a docker container
- Java parameters that lets OCUM run on a small memory system/container
Obviously, you need a valid entitlement to build this docker image. The RPM
files for OCUM and dependencies are expected in a YUM repository that you
can customize by editing OCUM.repo
.
If you do not have a YUM repository available, you can use ybizeul/yum docker
image to run one in a container, then run docker inspect
to retrieve container IP :
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e2712c5b19c1 yum "/bin/sh -c /start.sh" 7 months ago Up 4 hours 0.0.0.0:32768->80/tcp yum
$ docker inspect --format '{{ .NetworkSettings.IPAddress }}' e2712c5b19c1
172.17.0.3
You can now configure it into OCUM.repo
:
[ocum]
name=OCUM
baseurl=http://172.17.0.3/
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Then you can run docker build .
The following files are required for a successful build :
mysql-community-client-5.6.35-2.el6.x86_64.rpm
mysql-community-common-5.6.35-2.el6.x86_64.rpm
mysql-community-libs-5.6.35-2.el6.x86_64.rpm
mysql-community-libs-compat-5.6.35-2.el6.x86_64.rpm
mysql-community-server-5.6.35-2.el6.x86_64.rpm
netapp-application-server-7.1.0-2016.11.J2293.x86_64.rpm
netapp-ocum-7.1-x86_64.rpm
netapp-platform-base-7.1.0-2016.11.J2293.el6.x86_64.rpm
node.x86_64.rpm
ocie-au-7.1.0-2016.05.J2327.x86_64.rpm
ocie-server-7.1.0-2016.05.J2327.x86_64.rpm
ocie-serverbase-7.1.0-2016.11.J2293.x86_64.rpm
rp.x86_64.rpm