Skip to content

daileyo/docker-oracle-xe-11g

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#docker-oracle-xe-11g

Oracle Express Edition 11g Release 2 on Ubuntu 16.04 LTS

docker pull daileyo/docker-oracle-xe-11g

NOTE: This image is based off of wnameless/oracle-xe-11g, and sath89/oracle-xe-11g.

##How this differs from wnameless

  • Allows for db configuration to be persisted after container stop/restart (similar to sath89.)
  • Runs sql scripts as sys sysdba rather than system.

##How this differs from sath89

  • Implements initialization script functionality from wnameless.
  • Does not utilize size optimizations of sath89 project.
  • Does not have additional configuration options from sath89 project.
  • Allows for remote connection configuration.
  • Allows ssh connectivity as implemented by wnameless project.
  • Project structure is essentially identical to wnameless project.

##Project information

###Environment Variables and exposed ports

  • ORACLE_ALLOW_REMOTE
  • SSH default container port: 22
  • Oracale default connect container port: 1521

###Container access information

  • Users available by default:
    • SYS
    • SYSTEM
  • Password(s) for users: oracle
  • SSH login user: root
  • SSH login password: admin

####How to map container ports to host. To run with 22 and 1521 ports opened, expose the ports to the host with docker run's -p command.

Example:

docker run -d -p 49160:22 -p 49161:1521 daileyo/oracle-xe-11g

The above example maps container port 22 to host port 49160, and container port 1521 to 49161.

To use database initialization, a volume must be configured on the host.

Docker Example:

docker run -d -v /opt/scripts:/docker-initializedb.d daileyo/oracle-xe-11g

Docker for Windows Example:

docker run -d -v C:\opt\scripts:/docker-initializedb.d daileyo/oracle-xe-11g

Docker Toolbox Example:

docker run -d /c/Users/Public/scripts:/docker-initializedb.d daileyo/oracle-xe-11g

For the above example to work, script files must be placed in the Public user directory. It is also possible to put it in other directories, but they must first be exposed to the docker-engine virtual machine first.

All three of the above examples expose a host directory to the container. Any bash or sql scripts in the directory will be ran, and then have .ran appened to the file.

###How to use SSH with container

Login by SSH

ssh root@localhost -p 49160
password: admin

To initialize/configure database, initialize a new volume at container runtime that maps to /docker-entrypoint-initdb.d of the container.
Example:

docker run -v /opt/demo:docker-entrypoint-initdb.d daileyo/docker-oracle-xe-11g

About

Dockerfile of Oracle Database Express Edition 11g Release 2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%