This repository is derived from jaspeen/oracle-11g. Thank jaspeen for his great job!!! Changes are made for:
- resolving the problem that installation hangs at 76%.
- adding vncserver dependencies to enable oracle dbca.
Image for running Oracle Database 11g Standard/Enterprise. Due to oracle license restrictions image is not contain database itself and will install it on first run from external directory.
This image for development use only
This repository has no registerd image in docker hub. You need to build image by yourself.
cd into parent directory of oralce11g, then run command:
docker build -t <image_name> oracle11g
If succeeding, you will see this new image.
docker images
Note that if you run build in linux, some files may need to be converted to unix format, i.e.
dos2unix oracle11g/assets/*
Download database installation files from Oracle site and unpack them to install_folder. For instance, unpacking oracle packages gives you /home/oracle/install/database. Then install_folder should be /home/oracle/install/ .
Run container and it will install oracle and create database:
docker run --privileged --name oracle11g -p 1521:1521 -v <install_folder>:/install <image_name>
Then you can commit this container to have installed and configured oracle database:
docker commit oracle11g oracle11g-installed
docker save oracle11g-installed | gzip > oracle11g-installed.tar.gz