Comments (9)
As the oracle user is created during build there is no default .bashrc for oracle user to begin with.
from docker-images.
In previous versions of the oracle/database image this was handled correctly.
The creation of the user at image buildtime is irrelevant for this. It is used as soon as you start a new container for any bash invocation, as this might be a tiny detail looking not very important, your change can issue problems for people not knowing that ~/.bashrc
in your image behaves different than in any other distro especially when you need to embed customized executables via PATH var or global settings via /etc/bashrc
eg. when you use scripts for database initialization in /docker-entrypoint-initdb.d/{startup,setup}
from docker-images.
export ORACLE_SID=${ORACLE_SID^^}' > .bashrc
@3ronco what I meant was that the above cmd is what creates .bashrc as it was not existing before that so > or >> does not make a difference
from docker-images.
@yunus-qureshi ok, when i run buildContainerImage.sh
the resulting image contains the file:
me@myMachine:~ $ docker run -ti --rm --entrypoint "" oracle/database:19.3.0-ee /bin/bash
[oracle@fa40941978bf ~]$ ls -la
total 20
drwx------ 1 oracle oinstall 104 Mar 25 17:16 .
drwxr-xr-x 1 root root 12 Mar 25 17:16 ..
-rw-r--r-- 1 oracle oinstall 18 Nov 23 2021 .bash_logout
-rw-r--r-- 1 oracle oinstall 193 Nov 23 2021 .bash_profile
-rw-r--r-- 1 oracle oinstall 300 Mar 25 17:21 .bashrc
-rw-r--r-- 1 oracle oinstall 172 Aug 9 2022 .kshrc
lrwxrwxrwx 1 root root 26 Mar 25 17:16 setPassword.sh -> /opt/oracle/setPassword.sh
[oracle@fa40941978bf ~]$ cat .bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
from docker-images.
@3ronco i see, we'll check and get back on this. I am surprised that it even contains .kshrc as we don't install ksh.
from docker-images.
I think there's a case for performing >>
vs >
should an image include a custom .bashrc
introduced via modifications in the build scripts.
from docker-images.
@yunus-qureshi I believe that ksh
gets installed by oracle-database-preinstall-*
; ksh
is a long-standing prerequisite for Oracle databases:
# yum install -y oracle-database-preinstall-19c
...
Dependencies Resolved
========================================================================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================================================================
Installing:
oracle-database-preinstall-19c x86_64 1.0-3.el7 ol7_latest 27 k
Installing for dependencies:
...
ksh x86_64 20120801-144.0.1.el7_9 ol7_latest 882 k
...
---> Package ksh.x86_64 0:20120801-144.0.1.el7_9 will be installed
from docker-images.
I see. Thank you @oraclesean
from docker-images.
Thanks for your efforts 👍
from docker-images.
Related Issues (20)
- RMAN backup and restore to a specific point in time -> getting RMAN-06025 errors HOT 3
- Unable to pull oracle/weblogic:12.1.3-developer image HOT 2
- Creation of OracleDatabase 21c errors with out of memory HOT 2
- oracle 19c image doesn't work :LRM-00109: could not open parameter file HOT 1
- Request to change instances of "PDB_ADMIN" to "PDBADMIN" in documentation/READMEs
- Building Oracle EE arm64 on x86 with docker buildx fails
- The Oracle port has not been modified
- Can DB_DOMAIN in OracleDatabase/SingleInstance? HOT 2
- How to use yum when running scripts after setup HOT 6
- any plan to support of oracle instant client with oraclelinux 9 HOT 1
- Unable to create multiple replicas on kubernetes cluster HOT 2
- Install manually oracle-database-preinstall-19c HOT 1
- Reuse Existing Database Files When Re-creating an Oracle 19c Container HOT 4
- `Password: su: Authentication failure` error when starting the container HOT 2
- Failed to connect to the specified database (ORCLCDB). HOT 3
- container-registry.oracle.com/database/enterprise:12.2.0.1-slim -e ORACLE_CHARACTERSET it does not work HOT 1
- DB oracle error [FATAL] ORA-03114: not connected to ORACLE HOT 7
- poman-desktop valumes binding problem
- Oracle 19.3 image looks too heavy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-images.