Skip to content

[DRAFT: learn-ocaml 0.13 has not yet been released!] docker-compose template for deploying learn-ocaml in a VM

License

Notifications You must be signed in to change notification settings

pfitaxel/docker-learn-ocaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-learn-ocaml

docker-compose.yml template for deploying Learn-OCaml in a VM.

Warning: this configuration is still experimental, in particular the specified version of the learn-ocaml image (version 0.13+git) has not yet been released and contains the following bug: ocaml-sf/learn-ocaml#362 (comment).

Also, some environment variables contained in this configuration may later be renamed (e.g. to prepend some LEARNOCAML_ prefix).

So for the time being, for deploying in prod, you might want to use ocaml-sf/learn-ocaml:0.12 and/or follow the instructions gathered in the upstream repo

Overview

This configuration template combines several Docker containers to deploy a Learn-OCaml instance (version 0.13+), served in HTTPS, able to send e-mails for account confirmation and password changes (assuming the use_passwd option has been enabled), and communicating with a Moodle server (hosted apart, e.g. in your university) using the LTI protocol, allowing one to sign-up and sign-in very easily (assuming both use_moodle and use_passwd options have been enabled).

Summary of the configuration steps

  • Install docker (see e.g. that page of docker-coq/wiki)
  • Install docker-compose (see official doc)
  • Clone this repository using git.
  • Edit the following files:
  • Run docker-compose config to check the configuration values.
  • Run docker-compose up to start the server a first time.
  • Check that the application is properly served using HTTPS.
  • Run docker-compose stop (or docker-compose down).
  • Uncomment line STAGE: 'production'in file docker-compose.yml.
  • Run docker-compose up -d to restart the server (-d = in background).

About

[DRAFT: learn-ocaml 0.13 has not yet been released!] docker-compose template for deploying learn-ocaml in a VM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages