{"id":20561504,"url":"https://github.com/avindra/oracle-12c-docker","last_synced_at":"2025-09-06T01:35:40.393Z","repository":{"id":92404427,"uuid":"139367133","full_name":"avindra/oracle-12c-docker","owner":"avindra","description":"Instructions on how to create a minimal containerized Oracle Database image. Refers to 12c edition.","archived":false,"fork":false,"pushed_at":"2018-07-01T22:57:45.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-20T06:58:09.254Z","etag":null,"topics":["docker","oracle-12c","oracle-database","oracle-database-docker"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avindra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-01T22:33:23.000Z","updated_at":"2023-03-10T08:25:40.000Z","dependencies_parsed_at":"2023-03-13T17:29:15.777Z","dependency_job_id":null,"html_url":"https://github.com/avindra/oracle-12c-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/avindra/oracle-12c-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avindra%2Foracle-12c-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avindra%2Foracle-12c-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avindra%2Foracle-12c-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avindra%2Foracle-12c-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avindra","download_url":"https://codeload.github.com/avindra/oracle-12c-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avindra%2Foracle-12c-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273846978,"owners_count":25178629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","oracle-12c","oracle-database","oracle-database-docker"],"created_at":"2024-11-16T03:59:33.681Z","updated_at":"2025-09-06T01:35:40.341Z","avatar_url":"https://github.com/avindra.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oracle provides this\n\nOracle has a [canonical repository](https://github.com/oracle/docker-images) for building docker images for many of their products, including [Oracle Databases](https://github.com/oracle/docker-images/tree/master/OracleDatabase/SingleInstance).\n\n# Use cases I want to support\n\n * Local development databases\n * Databases for use in continuous integration\n * Single instance. RAC deployments are supported, but not necessary for the above two use cases.\n\n# How do I build the image?\n\nOracle has pretty good instructions and scripts for doing this, but it isn't super clear right away. For instance, since you are using Docker, you probably want to have a [prebuilt db](https://github.com/oracle/docker-images/tree/master/OracleDatabase/SingleInstance/samples/prebuiltdb) as well. Here was the end result of the first iteration in my journey:\n\n```\n $ docker images\nREPOSITORY           TAG                 IMAGE ID            CREATED             SIZE\noracle/db-prebuilt   12.1.0.2-ee         00888a40e015        26 minutes ago      14.9GB\noracle/database      12.1.0.2-ee         18553d8c8419        38 minutes ago      10.4GB\n```\n\nThat's right, the base image turned out to be 10.4GB and the prebuilt image, a whopping 14.9GB for an image with a pre-built database. Try explaining that to your network admin / container team.\n\nFortunately, Oracle is [aware of this image size problem](https://github.com/oracle/docker-images/issues/896), and suggests a workaround, which is essentially to use the experimental `squash` option of `docker build`. For example, if you are building an enterprise version of 12.1.0.2, you would build it as:\n\n```\n ./buildDockerImage.sh  -v 12.1.0.2 -e -o --squash\n```\n\nNote that this is an experimental feature, so you will have to pass `--experimental=true` to `DOCKER_OPTS` in `/etc/sysconfig/docker`.\n\nNew image sizes after enabling `--squash`:\n\n```\n$ docker images\nREPOSITORY           TAG                 IMAGE ID            CREATED             SIZE\noracle/db-prebuilt   12.1.0.2-ee         801cde12e07c        3 seconds ago       9.5GB\noracle/database      12.1.0.2-ee         aad4e86f3d3b        5 minutes ago       5.05GB\n```\n\nMuch better! I suspect the `db-prebuilt` tag can be shrinked down as well.\n\n# Wishlist\n\nOracle please:\n\n * Express edition for 12c\n * 18c+ container building scripts\n * Allow removing features, to help reduce container footprint (storage and compute). For example, I should be able to disable APEX which would prevent the files from being installed.\n * Canonical docker hub images - so we don't have to discover the build issues above and everyone can just point to a single source of truth :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favindra%2Foracle-12c-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favindra%2Foracle-12c-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favindra%2Foracle-12c-docker/lists"}