Public Repository

Last pushed: 2 years ago
Short Description
Oracle XE Container with transparent build mechanism
Full Description

Because the build for this requires the download of the oracle-xe rpm, it does not build automatically. However, the goal of this container is to be built in a completely transparent and reproducible fashion. The repository is https://github.com/PhilipHarries/docker-oracle-xe and this can be used to roll your own version if required.

The container is intended to be pulled in by a further Dockerfile that will then configure and start the database, e.g.


FROM philipharries/oracle-xe
EXPOSE 1521
ADD scripts /scripts
ENV ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
ENV PATH=$ORACLE_HOME/bin:$PATH
ENV ORACLE_SID=XE
RUN ["/bin/bash","-c","env"]
RUN ["/bin/bash","-c","service oracle-xe start && sleep 10 && mkdir -p /var/log/test-db && /scripts/install-test-db.sh | tee /var/log/test-db/install.log"]
RUN chown -R oracle:dba /var/log/test-db
CMD /etc/init.d/oracle-xe start && while true;do sleep 900;done

It's also worth noting that the oracle database is already configured and built in this image - meaning that the oracle-xe .dbf files are already present. This makes this a lot bigger than the base install of oracle-xe, but the trade-off against the size of the image is, a) if you need multiple copies, they will be smaller, since they won't build their own versions of the basic database files, and b) startup will be (slightly) faster.

Docker Pull Command
Owner
philipharries