Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

windows container install oracle db

3570408Nov 16 2018 — edited Jul 18 2019

I have been struggling with this for a couple of days

I have Oracle setup installer and response files ready, I run the setup command with my response file from an elevated cmd window, no problems found, oracledb installs according to my reponsefile

CMD command
setup -silent -responsefile d:\temp\database\response\db.rsp -skipPrereqs -noconfig -waitForCompletion

But even with silent switch the Oracle Universal Installer and some other configuration screens still popup, that will not work when installing from an image or within a container itself
(see picture attached)

When try to replicate using my dockerfile or an error or nothing happens

Docker file
#Sample Dockerfile

#Indicates that the windowsservercore image will be used as the base image.
FROM microsoft/windowsservercore

#Create the working folder
RUN mkdir c:\temp\database

#Copy Oracle installers and response file to the working directory previously created
COPY database /temp/database

#Run the command
RUN Powershell.exe Start-Process -FilePath ‘C:\temp\database\setup.exe’ -argumentlist ‘-responsefile c:\temp\database\response\db.rsp’, ‘silent’ -wait

Once ready I run on an elevated powershell Window

PS D:\docker\dockerfiles> docker image build -t 2016oracle -f dockerfile .

As I said even that the build might finish successfully and without errors the application it is not installed or the container run for a moment and then exits few seconds later

Comments

User_3TUKA

any news at this?, I had the same issue.

Sean Schneeweiss

To start the installation of i.e. Oracle database I'm using this command:

# escape=`

FROM mcr.microsoft.com/windows/servercore:ltsc2016

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

WORKDIR c:\\temp

COPY WINDOWS.X64_180000_db_home.zip oracle.zip

RUN Expand-Archive oracle.zip -DestinationPath oracle; `

    Remove-Item -Force oracle.zip;

ENV ORACLE_HOME=C:\temp\oracle

COPY responsefile.rsp db.rsp

RUN Start-Process $env:ORACLE_HOME\setup.exe `

    -ArgumentList '-silent', '-nowait', '-waitforcompletion', `

    '-ignorePrereqFailure', `

    '-responseFile', 'C:\temp\db.rsp' `

    -NoNewWindow -Wait;

Maybe the parameter NoNewWindow and Wait will help.

Good luck.

1 - 2

Post Details

Added on Nov 16 2018
2 comments
2,101 views