Skip to content

Commit

Permalink
Ensure that any Oracle > 11g doesn't use tmpfs anymore
Browse files Browse the repository at this point in the history
Apart from not giving a real benefit, the new machinery
in Oracle 12 and up doesn't work well with these devices
leading to all sort of problems is we also want to change
system settings.

Hence, disabling tmpfs. There are some more details in the
long conversation @ gvenzl/oci-oracle-xe#111
(about that and many other details / iterations)
  • Loading branch information
stronk7 committed Jun 23, 2022
1 parent 08389ab commit 3891a8f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions runner/master/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,20 @@ then

elif [ "${DBTYPE}" == "oci" ]
then
# Need to adjust how we use tmpfs database depending on the database tag.
# For newer versions, do this (no tmpfs, but apply system settings - it's impossible to have both together).
tmpfsinit=
tmpfsmount=
if [ "${DBTAG}" == "latest" ] || [ "${DBTAG}" == "11" ]
then
tmpfsinit="-v $SCRIPTPATH/oracle.d/tmpfs.sh:/docker-entrypoint-initdb.d/tmpfs.sh"
tmpfsmount="--tmpfs /var/lib/oracle --shm-size=2g"
fi
docker run \
--detach \
--name ${DBHOST} \
--network "${NETWORK}" \
-v $SCRIPTPATH/oracle.d/tmpfs.sh:/docker-entrypoint-initdb.d/tmpfs.sh \
--tmpfs /var/lib/oracle \
--shm-size=2g \
${tmpfsinit} ${tmpfsmount} \
-e ORACLE_DISABLE_ASYNCH_IO=true \
moodlehq/moodle-db-oracle-r2:${DBTAG}

Expand Down

0 comments on commit 3891a8f

Please sign in to comment.