vitorsobral / oracle-docker

Simple customization for the Oracle 12c official Docker image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oracle 12c Docker Official Image with Custom Scripts

This project is a simple customization for the Oracle 12c official Docker image available here. Basically setupDB.sh is a script taken from inside the oracle container and customized to call another bash script (runInitialScripts.sh) that runs every sql file present on the mounted volume folder. It is important to note that the scripts will be applied sequentially in alphabetical order, so name them accordingly if execution order is a matter. E.g. 01-DatabaseConfig.sql, 02-InitialSchemas.sql, 03-Seed.sql, etc. Also it is important to note that every file that does not have the .sql extension will be ignored

Usage

  1. Add your custom sql scripts to the volume folder (it will be mounted when we execute the docker container)
  2. Login to the docker portal
  3. Acquire Oracle image from the store
  4. Install Docker for your OS Windows | Ubuntu | MacOS
  5. Run docker login to authenticate with your Docker account
  6. Run the cake task SetupAndWaitContainer:
    ./build.sh -t SetupAndWaitContainer
    or
    .\build.ps1 -t SetupAndWaitContainer
    

Connection

  • Hostname: localhost
  • Port: 1521
  • Service Name: ORCLCDB.localdomain
  • User: sys
  • Password: Oradoc_db1

Documentation

About

Simple customization for the Oracle 12c official Docker image


Languages

Language:PowerShell 46.4%Language:Shell 35.0%Language:C# 17.6%Language:Dockerfile 1.0%