Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
63 changes: 63 additions & 0 deletions presets/composer.json
Original file line number Diff line number Diff line change
@@ -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"
}
}