This repo provides a script to automate the process of creating a prebuilt oracle docker image.
Oracle offers their own database container image gvenzl/oracle-xe under the Apache 2.0 License
The oracle container image gvenzl/oracle-xe
decompresses the database and configuration files at container runtime.
This results in a long startup time for these containers.
The script in this prepository automates the creation of a container that has already decompressed the database. This results in significally better runtime performance.
Clone this repo, navigate to the source directory and run the prebuild.sh
script.
git clone [email protected]:KyleAure/oracle-docker-images.git
cd oracle-docker-images/version2/src
./prebuild.sh
This script will do the following:
- Build the base image
oracle/database:18.4.0-slim-expanded
- Make necessary edits to the
container-entrypoint.sh
- Run a
preconfigure.sh
script to decompress the database - Tag the base image
- Clean up the intermediary containers, and dangling containers.
docker pull kyleaure/oracle-18.4.0-slim-expanded
To push this image to a private dockerhub repository.
Create a private repository named:
<dockerhub-username>/oracle-18.4.0-xe-prebuilt
Then run the prebuild.sh
script with the push parameter.
# version is typically 1.0 or latest
./prebuild.sh -p -u <dockerhub-username> -v <dockerhub-version>