I'm trying to install Oracle XE 18c in a docker container in Windows 10. I have docker already installed, and I need to build the image as explained here.
I cloned the git repository, but I'm stuck on this step, as what I cloned are Linux commands and not Windows.
After cloning with:
git clone https://github.com/oracle/docker-images.git
If I cd
to docker-images\OracleDatabase\SingleInstance\dockerfiles\18.4.0
to build the image I see the following sh
comands, instead of exe
or bat
:
12/28/2019 01:36 PM 1,137 checkDBStatus.sh
12/28/2019 01:36 PM 905 checkSpace.sh
12/28/2019 01:36 PM 75 Checksum.xe
12/28/2019 01:36 PM 2,752 Dockerfile.xe
12/28/2019 01:36 PM 533 oracle-xe-18c.conf
12/28/2019 01:36 PM 6,132 runOracle.sh
12/28/2019 01:36 PM 775 setPassword.sh
How to build this image in Windows?
Best Answer
Use Wsl Ubuntu Bash set path to Docker executables or simply install Git Bash for Windows from Docker Tools and run the shell script from Git Bash terminal(I prefer Git Bash).Download and Copy Oracle18xe rpm file to 18.40 folder
This is output from Git Bash for windows
After running shell script successfully
You can connect to database via sqlplus or login into docker container using Windows Dos
To use WSL subsystem bash terminal add path and alias to .bashrc
From WSL Bash terminal