Code Monkey home page Code Monkey logo

docker-adaptauthoring's Introduction

README.md

Authoring SCORM-compatible training using the Adapt Authoring tool at http://localhost:5000.

Login credentials are set from a .env file (See Config section).

Getting Started - docker-compose

Config

Add an .env file with the following:

ADMIN_EMAIL=admin
ADMIN_PASSWORD=password

This is read during "setup."

Setup

Do this once:

docker-compose up -d

If you're using Windows skip to Windows Setup, otherwise wait for a moment, then

docker-compose -f docker-compose.setup.yml run --rm setup

Subsequent runnings: docker-compose up -d.

Windows Setup

Docker's docker-compose interactive mode command on Windows isn't fully supported. Here's an alternate method for updating the adaptauthoring container:

docker exec -it into the running adaptauthoring container, then

export ADMIN_EMAIL=admin

export ADMIN_PASSWORD=password

node install --install Y --serverPort 5000 --serverName localhost --dbHost adaptdb --dbName adapt-tenant-master --dbPort 27017 --dataRoot data --sessionSecret your-session-secret --useffmpeg Y --smtpService dummy --smtpUsername smtpUser --smtpPassword smtpPass --fromAddress [email protected] --name master --displayName Master --email ${ADMIN_EMAIL} --password ${ADMIN_PASSWORD}

Exit and then restart the container.

Clean Up

To remove containers

docker-compose down

To remove data (courses)

This will delete your hard work.

docker volume rm dockeradaptauthoring_adaptdb
docker volume rm dockeradaptauthoring_adaptdata

Backup

Create local archives of both the adapt_authoring folder and database:

docker run -it -w /backup -v dockeradaptauthoring_adaptdb:/adaptdb -v $(pwd)/backup:/backup dockeradaptauthoring_authoring bash -c "tar -czvf adaptdata_`date +"%Y-%m-%d_%H-%M-%S"`.tar.gz /adapt_authoring && tar -czvf adaptdb_`date +"%Y-%m-%d_%H-%M-%S"`.tar.gz /adaptdb"

Getting Started - Using docker run ...

Setup

docker run -d --name adaptdb -v adaptdb:/data/db mongo

Adjust values such as --email and --password as desired:

docker run -it -p 5000:5000 --link adaptdb --name adaptauthoring -v adaptdata:/adapt_authoring garyritchie/docker-adaptauthoring bash -c 'node install --install Y --serverPort 5000 --serverName localhost --dbHost adaptdb --dbName adapt-tenant-master --dbPort 27017 --dataRoot data --sessionSecret your-session-secret --useffmpeg Y --smtpService dummy --smtpUsername smtpUser --smtpPassword smtpPass --fromAddress [email protected] --name master --displayName Master --email admin --password password'

After a while the container should quit and you should see the following message"

Done, without errors.

The app.productname web application was compiled and is now ready to use.
Installation complete.
To restart your instance run the command 'pm2 restart all'
Bye!

Run

Once the "Setup" steps are complete, do:

docker restart adaptauthoring

Adapt authoring tool should now be available at http://localhost:5000/

Upgrade

Please Note: Upgrading has had mixed results in recent tests.

Upgrade the AuthoringTool and or Framework (run in a shell):

docker exec -it adaptauthoring bash -c 'node upgrade --Y/n Y'

node upgrade has been stalling... docker run -it -p 5000:5000 --link adaptdb --name adaptauthoring -v adaptdata:/adapt_authoring garyritchie/docker-adaptauthoring bash -c 'node upgrade --Y/n Y'

After a bit you should see:

Great work! Your Adapt authoring tool is now updated.

docker-adaptauthoring's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.