From 10c5b2e4cee5f2fead006ad4d5b64142e87c01d7 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Sat, 26 Dec 2020 12:52:09 +0100 Subject: [PATCH] Introduce moodlehq/moodle-db-oracle-r2, aiming to be public again - See MDLSITE-5669 / ICT-759 for more information. - Added ORACLE_DISABLE_ASYNCH_IO to get better performance. Fixes #8 --- .travis.yml | 4 ++-- Dockerfile | 1 + README.md | 11 +++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 11b1505..c56b455 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,9 @@ language: bash services: docker install: - - docker build -t moodle-db-oracle . + - docker build -t moodle-db-oracle-r2 . script: - - docker run --name test0 -p 1521:1521 -d moodle-db-oracle + - docker run --name test0 -p 1521:1521 -d moodle-db-oracle-r2 - until docker logs test0 | grep -q 'Database opened.'; do echo 'Waiting for oracle to come up...' && sleep 15; done # Extremely nasty command to get the oracle version.. # We have to work around the lack of piping/env variables.. diff --git a/Dockerfile b/Dockerfile index 4c4e852..4c987c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM wnameless/oracle-xe-11g-r2:latest ENV ORACLE_ALLOW_REMOTE true +ENV ORACLE_DISABLE_ASYNCH_IO=true ADD root / diff --git a/README.md b/README.md index dbc6e3c..b7c509b 100644 --- a/README.md +++ b/README.md @@ -6,19 +6,17 @@ An Oracle XE instance configured for Moodle development based on [wnameless/dock # Example usage ```bash -docker run --name db0 -p 1521:1521 moodlehq/moodle-db-oracle +docker run --name db0 -p 1521:1521 moodlehq/moodle-db-oracle-r2 ``` # Bulding locally -Since this image can't be pulled from Docker repo at the moment -([MDLSITE-5669](https://tracker.moodle.org/browse/MDLSITE-5669)) one may need -to build it for local usage: +If there is any future problem with this public image (like it happened before, see [MDLSITE-5669](https://tracker.moodle.org/browse/MDLSITE-5669)), or if you want to build the image locally for any further improvement, you can use: ```bash > git clone git@github.com:moodlehq/moodle-db-oracle.git -> docker build ./moodle-db-oracle --tag moodlehq/moodle-db-oracle +> docker build ./moodle-db-oracle --tag moodlehq/moodle-db-oracle-r2 ``` -This will create local image `moodlehq/moodle-db-oracle` which is then can be +This will create local image `moodlehq/moodle-db-oracle-r2` which is then can be used in `docker run` command or by [moodle-docker](https://github.com/moodlehq/moodle-docker) testing tools. # Features: @@ -27,6 +25,7 @@ used in `docker run` command or by [moodle-docker](https://github.com/moodlehq/m # See also This container is part of a set of containers for Moodle development, see also: + * [moodle-docker](https://github.com/moodlehq/moodle-docker) a docker-composer based set of tools to get Moodle development running with zero configuration * [moodle-php-apache](https://github.com/moodlehq/moodle-php-apache) PHP and Apache configured for Moodle development * [moodle-db-mssql](https://github.com/moodlehq/moodle-db-mssql) Microsoft SQL Server for Linux configured for Moodle development