Skip to content

running oracle 18.4.0 XE on openshift as non-root user #1660

@mipe

Description

@mipe

I am trying to run the oracle 18.4.0 XE image on an openshift cluster. Openshift starts containers with arbitrary user ids and not as root which causes the container to crash immediately:

ORACLE_HOME = [/home/oracle] ? ORACLE_BASE environment variable is not being set since this
information is not available for the current user ID .
You can set ORACLE_BASE manually if it is required.
Resetting ORACLE_BASE to its previous value or ORACLE_HOME
The Oracle base remains unchanged with value /opt/oracle
#####################################
########### E R R O R ###############
DATABASE SETUP WAS NOT SUCCESSFUL!
Please check output for further info!
########### E R R O R ###############
#####################################
The following output is now a tail of the alert.log:
tail: cannot open '/opt/oracle/diag/rdbms/*/*/trace/alert*.log' for reading: No such file or directory
tail: no files remaining

So is there a way to start the container as non-root user?

I tried using USER 54321 in the Dockerfile to start as user 'oracle' but this will also cause an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    databaseinteroperabilityIssues with building or executing images due to a environmentmore-info-requiredMore information is required to solve this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions