Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle on Docker with pre-pumped Data

Tags:

docker

oracle

I am using the following base docker file:

https://github.com/wnameless/docker-oracle-xe-11g/blob/master/Dockerfile

I read a bit on how to setup a data Volumne from this SO question and this blog, but not sure how to fit the pieces together.

In short, I would like to manage the oracle data in a data only Docker image, how to do it ?

like image 347
Nicolas Modrzyk Avatar asked Oct 21 '14 05:10

Nicolas Modrzyk


People also ask

Can I run Oracle database in docker?

The Oracle Database Enterprise Edition Docker image contains Oracle Database 21c Enterprise Edition, with the option to deploy either Enterprise Edition or Standard Edition, running on Oracle Linux 7 (x86-64). This image contains a default database in a multitenant configuration, with one pluggable database.

Can Oracle database be containerized?

Using orchestration and automation for containerized applications, developers can self-provision an Oracle database, thereby increasing flexibility and productivity while saving substantial time in creating a production copy for development and testing environments.

Is docker good for production database?

In general, Docker is not designed for stateful services, so it is not highly recommended to run a database in a docker container in a production environment.

Can Oracle database run on Kubernetes?

Oracle Sharding on Kubernetes uses StatefulSet to provide stable, unique network identifiers and stable, persistent storage so you can create and manage your Oracle Sharding replica set natively in Kubernetes with Oracle supported helm and chart templates.


1 Answers

I've realized volumes mount for db data. Here is my fork:

  • Reduce size of image from 3.8G to 825Mb
  • Database initialization moved out of the image build phase. Now database initializes at the containeer startup with no database files mounted
  • media reuse support outside of container. Added graceful shutdown on containeer stop
  • Removed sshd

You may check here:

https://registry.hub.docker.com/u/sath89/oracle-xe-11g

https://github.com/MaksymBilenko/docker-oracle-xe-11g

like image 54
Sath89 Avatar answered Sep 23 '22 12:09

Sath89