Git Product home page Git Product logo

minimized-oraclexe-image's Introduction

minimized-oraclexe-image

This project contains a Minimized Oracle 18.4.0 XE docker image intended to be used for integration testing.

This is a minimized image based on the official Oracle Docker XE Image but removes files not required for this purpose to minimize image file size and improve startup time.

Image creation

First you will ned to create the official Oracle Docker image

$ git clone https://github.com/oracle/docker-images.git
$ cd docker-images/OracleDatabase/SingleInstance/dockerfiles
$ ./buildDockerImage.sh -v 18.4.0 -x

$ docker image ls
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
oracle/database     18.4.0-xe           79e03b2304a7        About an hour ago   5.89GB

Then use the Dockerfile from this project to build the minimized image:

$ git clone https://github.com/diemobiliar/minimized-oraclexe-image.git
$ cd minimized-oraclexe-image/18c_xe
$ docker build . -t diemobiliar/oracle:18c_xe

$ docker image ls
REPOSITORY           TAG                 IMAGE ID            CREATED             SIZE
diemobiliar/oracle   18c_xe              df4317e0b89d        21 seconds ago      3.9GB
oracle/database      18.4.0-xe           79e03b2304a7        2 hours ago         5.89GB

The examples directory contains an example on how to use this image using testcontainers.

The test should usually run within 5 seconds (starting up the minimized oracle image and apply one flyway migration).

Usage and Startup Options

The username and password to connect to the database is: AOO_TESTS

The SID is: XE

The image allows to specify the SGA memory from 288M to 1664M, the default being 1536M. Important: don't miss out on the "M".

Example:

docker run -e "SGA_TARGET=512M"  --name 18c_xe512m -p 1523:1521 diemobiliar/oracle:18c_xe

Contributions

A big thank-you goes to the creators of the image:

minimized-oraclexe-image's People

Contributors

habnux avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.