It takes sometime to create a container (depending on your hardware, of course), so when I discovered that the examples / demos that are distributed in another file were not included, I decided to try to add it to the running container. It is easy, just download the linuxx64_12201_examples.zip file and copy it into the running container, which in my case is named ora12.2:
docker cp linuxx64_12201_examples.zip ora12.2:/tmp
Also unzip a copy of the included response file locally:
unzip -j -d /tmp linuxx64_12201_examples.zip \ examples/response/demos_install.rsp
Edit it and change the variables so they look like this:
UNIX_GROUP_NAME=oinstall ORACLE_HOME=/opt/oracle/product/18.104.22.168/dbhome_1 ORACLE_BASE=/opt/oracle
Copy it to the container:
docker cp /tmp/demos_install.rsp ora12.2:/tmp
Connect to your container with a command similar to this (again, ora12.2 is the name of my container):
docker exec -ti ora12.2 /bin/bash
Inside the container, unzip the transferred zip file and start the installation with:
cd /tmp unzip linuxx64_12201_examples.zip cd examples ./runInstaller -silent -force -waitforcompletion \ -responsefile /tmp/demos_install.rsp -ignoresysprereqs -ignoreprereq
You can now verify that you have more demos installed, for instance under $ORACLE_HOME/md/demo.
Of course you can achieve the same effect by adding a few lines to the Dockerfile, build, and run again. Something like this should do for the Dockerfile:
# Added install of examples ENV EXAMPLE_RSP="demos_install.rsp" \ EXAMPLE_FILE="linuxx64_12201_examples.zip" COPY $EXAMPLE_RSP $EXAMPLE_FILE /tmp/ RUN cd /tmp && \ unzip linuxx64_12201_examples.zip && \ cd examples && \ ./runInstaller -silent -force -waitforcompletion \ -responsefile /tmp/demos_install.rsp -ignoresysprereqs -ignoreprereq
It turned out to run just as fast since the new build builds on the previous images, oh well.