Create Oracle 19.9.0.0 Docker Image: The Conventional Approach

[oracle@dockerhost withoutrpms]$ tree
.
├── 19.3.0
│ ├── checkDBStatus.sh
│ ├── checkSpace.sh
│ ├── Checksum.ee
│ ├── Checksum.se2
│ ├── createDB.sh
│ ├── dbca.rsp.tmpl
│ ├── db_inst.rsp
│ ├── Dockerfile
│ ├── installDBBinaries.sh
│ ├── LINUX.X64_193000_db_home.zip
│ ├── LINUX.X64_193000_db_home.zip.download
│ ├── relinkOracleBinary.sh
│ ├── runOracle.sh
│ ├── runUserScripts.sh
│ ├── setPassword.sh
│ ├── setupLinuxEnv.sh
│ ├── startDB.sh
│ └── wallet
├── applypatch
│ ├── 19.3.0.0
│ │ ├── Dockerfile
│ │ ├── Dockerfile.ee
│ │ ├── Dockerfile.se2
│ │ ├── patches
│ │ │ ├── 001
│ │ │ │ ├── p31771877_190000_Linux-x86-64.zip
│ │ │ │ └── p31771877_190000_Linux-x86-64.zip.download
│ │ │ ├── applyPatches.sh
│ │ │ ├── p6880880_121010_Linux-x86-64.zip.download
│ │ │ └── p6880880_122010_Linux-x86-64.zip
│ │ └── wallet
│ └── buildPatchedDockerImage.sh
├── buildDockerImage.sh
└── Installation Path.jpg
[oracle@dockerhost withoutrpms]$ pwd
/opt/dockerOracle19c/withoutrpms
[oracle@dockerhost withoutrpms]$ ./buildDockerImage.sh -v 19.3.0 -e
Checking Docker version.
Checking if required packages are present and valid...
...
...
...
Oracle Image: oracle/database:19.3.0-ee-original
[oracle@dockerhost 19.3.0.0]$ docker run -it oracle/database:19.3.0-ee-original bash
[oracle@fe773a14b6db ~]$ sqlplus


SQL*Plus: Release 19.0.0.0.0 - Production on Sun Jan 10 00:42:51 2021
Version 19.3.0.0.0


Copyright (c) 1982, 2019, Oracle. All rights reserved.


Enter user-name:
[oracle@dockerhost applypatch]$ tree
.
├── 19.3.0.0
│ ├── Dockerfile
│ ├── Dockerfile.ee
│ ├── Dockerfile.se2
│ ├── patches
│ │ ├── 001
│ │ │ ├── p31771877_190000_Linux-x86-64.zip
│ │ │ └── p31771877_190000_Linux-x86-64.zip.download
│ │ ├── applyPatches.sh
│ │ ├── p6880880_121010_Linux-x86-64.zip.download
│ │ └── p6880880_122010_Linux-x86-64.zip
│ └── wallet
└── buildPatchedDockerImage.sh
[oracle@dockerhost 19.3.0.0]$ more Dockerfile
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2017 Oracle and/or its affiliates. All rights reserved.
#
# ORACLE DOCKERFILES PROJECT
# --------------------------
# This is the Dockerfile for a patched Oracle Database 12c Release 1 Enterprise Edition
#
# REQUIREMETNS FOR THIS IMAGE
# ----------------------------------
# The oracle/database:12.2.0.1-ee image has to exist
#
# HOW TO BUILD THIS IMAGE
# -----------------------
# Put the downloaded patch(es) into the sub folders patch/0NN
# Run:
# $ docker build -f Dockerfile.ee -t oracle/database:12.2.0.1-ee-<patch level> .
#
# Pull base image
# ---------------
FROM oracle/database:19.3.0-ee-original
[oracle@dockerhost applypatch]$ ./buildPatchedDockerImage.sh -v 19.3.0.0 -e
...
...
...
Oracle Image: oracle/database:19.3.0.0-ee-Patch
[oracle@dockerhost applypatch]$ docker run -it oracle/database:19.3.0.0-ee-Patch bash
[oracle@25aafd35a6c5 ~]$ sqlplus
SQL*Plus: Release 19.0.0.0.0 - Production on Sat Jan 2 01:18:43 2021
Version 19.9.0.0.0
Copyright (c) 1982, 2020, Oracle. All rights reserved.
Enter user-name:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store