oracle / docker-images

Official source of container configurations, images, and examples for Oracle products and projects
https://developer.oracle.com/use-cases/#containers
Universal Permissive License v1.0
6.59k stars 5.44k forks source link

The size of image is too big #728

Closed xiaoyan1985 closed 6 years ago

xiaoyan1985 commented 6 years ago

I made an image for 12.2.0.1-se, it's size is 13.3G. Is there any way to reduce the size of the image?

thanks.

gvenzl commented 6 years ago

Hi @xiaoyan1985, you can use the --squash option to reduce the image size to half. Have a look at https://geraldonit.com/2017/11/13/how-to-create-small-docker-images/

Furthermore, you can also use one of the prebuilt images on https://container-registry.oracle.com which tend to be smaller but also have less functionality included.

clemSeveillac commented 6 years ago

Hi @gvenzl , could you be more specific on those pre-built images? How are they built? What do they miss compared to what we build by default through this github repo?

gvenzl commented 6 years ago

Hey @clemSeveillac, the details are documented with the prebuilt images on https://container-registry.oracle.com

Caveats This docker image has the following restrictions:

  1. This Docker image release supports only single database instance.
  2. Dataguard feature is not supported.
  3. It does not support enabling of extra options and patching

Furthermore:

Oracle Database Server 12.2.0.1 Enterprise Edition Slim Variant. The slim (12.2.0.1-slim) version of EE does not have support for Analytics, Oracle R, Oracle Label Security, Oracle Text, Oracle Application Express and Oracle DataVault. The commands to run the Oracle Database Server 12.2.0.1 Enterprise Edition Slim variant should use the same commands as above with the slim docker image (denoted in the tag)