sbottolo / docker-alpine-oracle-xe

Oracle Database 11g Release 2 Express Edition Docker image

Home Page:https://hub.docker.com/r/cosmomill/alpine-oracle-xe/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alpine Oracle Database 11g Express Edition Docker image

This image is based on Alpine GNU C library image (cosmomill/alpine-glibc), which is only a 5MB image, and provides a docker image for Oracle Database 11g Release 2 Express Edition.

Prerequisites

  • If you want to build this image, you will need to download Oracle Database 11g Release 2 Express Edition for Linux x64.
  • Oracle Database 11g Release 2 Express Edition requires Docker 1.10.0 and above. (Docker supports --shm-size since Docker 1.10.0)
  • Oracle Database 11g Release 2 Express Edition uses shared memory for MEMORY_TARGET and needs at least 1 GB.

Usage Example

This image is intended to be a base image for your projects, so you may use it like this:

FROM cosmomill/alpine-oracle-xe

# Optional, auto import of sh, sql and dmp files at first startup
ADD my_schema.sql /docker-entrypoint-initdb.d/

# Optional, add required file for APEX update
ADD apex_18.1.zip /tmp/
$ docker build -t my_app . --build-arg ORACLE_RPM="oracle-xe-11.2.0-1.0.x86_64.rpm.zip"
$ docker run -d -P --shm-size=1g -v db_data:/u01/app/oracle/oradata -v apex_images:/u01/app/oracle/product/11.2.0/xe/apex/images -p 1521:1521 -p 8080:8080 my_app

The default list of ENV variables is:

PROCESSES=500
SESSIONS=555
TRANSACTIONS=610

Connect to database

Auto generated passwords are stored in separate hidden files in /u01/app/oracle/oradata/dbconfig/XE with the naming system .username.passwd.

Upgrade APEX to v18.1

If you want to upgrade to APEX v18.1, you will need to download Oracle Application Express 18.1 - All languages and add apex_18.1.zip to your image. (See usage example above)

The upgrade script will uninstall APEX 4.0.2 from Oracle Database 11g Express Edition. Before continuing, backup all APEX applications.

Next, execute docker-apex-update.sh on the container.

$ docker exec -it my_app docker-apex-update.sh /tmp/apex_18.1.zip

Setup a Alpine Oracle REST Data Services container.

About

Oracle Database 11g Release 2 Express Edition Docker image

https://hub.docker.com/r/cosmomill/alpine-oracle-xe/


Languages

Language:Shell 85.6%Language:Dockerfile 14.4%