diff --git a/Dockerfile b/Dockerfile index eb27ce6..dec85b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,20 +6,28 @@ ARG TAO_VERSION ENV TAO_VERSION ${TAO_VERSION:-3.4-rc01} # Install dependencies -RUN apk add --no-cache nodejs git npm +RUN apk add --no-cache nodejs git npm openssh # Install composer RUN wget https://raw.githubusercontent.com/composer/getcomposer.org/55e3ac0516cf01802649468315cd863bcd46a73f/web/installer -O - -q | php -- --quiet \ && mv composer.phar /usr/local/bin/composer -RUN echo Downloading and installing TAO version "${TAO_VERSION}" +RUN echo Downloading TAO version "${TAO_VERSION}" RUN curl -o tao.zip -LJO https://github.com/oat-sa/package-tao/archive/v${TAO_VERSION}.zip \ && unzip -qq tao.zip -d /usr/src \ - && mv /usr/src/package-tao-${TAO_VERSION} /usr/src/tao \ - && composer self-update --1 \ + && mv /usr/src/package-tao-${TAO_VERSION} /usr/src/tao + +RUN echo Replacing composer.json file + +COPY presets/composer.json /tmp/composer.json +RUN mv /tmp/composer.json /usr/src/tao/composer.json + +RUN echo Installing TAO + +RUN composer self-update --1 \ && composer config --global process-timeout 2000 \ - && composer install -d /usr/src/tao \ + && composer update -d /usr/src/tao \ && rm tao.zip # runner diff --git a/presets/composer.json b/presets/composer.json new file mode 100644 index 0000000..12491d0 --- /dev/null +++ b/presets/composer.json @@ -0,0 +1,63 @@ +{ + "name": "oat-sa/tao-community", + "description" : "TAO is an Open Source e-Testing platform that empowers you to build, deliver, and share innovative and engaging assessments online \u2013 in any language or subject matter.", + "license": "GPL-2.0-only", + "support": { + "issues": "http://forge.taotesting.com", + "forum": "https://forum.taotesting.com" + }, + "authors": [ + { + "homepage": "http://www.taotesting.com", + "name": "Open Assessment Technologies S.A." + } + ], + "keywords": [ + "sprint 121", + "tao", + "oat", + "computer-based-assessment" + ], + "homepage": "http://www.taotesting.com", + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/sistemasantonio/extension-tao-testtaker.git" + } + ], + "require": { + "oat-sa/generis": "12.6.3", + "oat-sa/tao-core": "40.7.2", + "oat-sa/extension-tao-community": "7.2.0", + "oat-sa/extension-tao-funcacl": "5.3.3", + "oat-sa/extension-tao-dac-simple": "5.1.1", + "oat-sa/extension-tao-testtaker": "7.2.2.2", + "oat-sa/extension-tao-group": "6.2.1", + "oat-sa/extension-tao-item": "10.2.0", + "oat-sa/extension-tao-itemqti": "23.3.0.1", + "oat-sa/extension-tao-itemqti-pci": "6.2.0", + "oat-sa/extension-tao-test": "13.4.4", + "oat-sa/extension-tao-testqti": "35.9.0.1", + "oat-sa/extension-tao-outcome": "10.2.2", + "oat-sa/extension-tao-outcomeui": "8.2.2", + "oat-sa/extension-tao-outcomerds": "6.3.1", + "oat-sa/extension-tao-outcomekeyvalue": "5.4.1", + "oat-sa/extension-tao-outcomelti": "3.2.1", + "oat-sa/extension-tao-delivery": "14.7.0", + "oat-sa/extension-tao-lti": "11.3.0", + "oat-sa/extension-tao-delivery-rdf": "10.2.2", + "oat-sa/extension-tao-ltideliveryprovider": "10.1.4", + "oat-sa/extension-tao-revision": "7.0.0", + "oat-sa/extension-tao-mediamanager": "9.0.1", + "oat-sa/extension-pcisample": "2.5.3", + "oat-sa/extension-tao-backoffice": "4.1.2", + "oat-sa/extension-tao-proctoring": "18.2.3", + "oat-sa/extension-tao-clientdiag": "7.3.3", + "oat-sa/extension-tao-eventlog": "2.5.0", + "oat-sa/extension-tao-task-queue": "5.0.1", + "oat-sa/extension-tao-testqti-previewer": "2.10.2" + }, + "require-dev" : { + "phpunit/phpunit" : "~8.5" + } +}