tvanerven / amy

A web-based workshop administration application built using Django.
https://amy.carpentries.org
MIT License
0 stars 0 forks source link

Fork for Amy

Original documentation can be found here: Amy Github. All documentation applies.

Fork changes

This is a living list of changes which this fork contains.

Building docker

Building the docker image is the same as described in Amy documentation at present:

$ LAST_COMMIT=`git rev-parse --short HEAD`
$ docker build -t amy:latest -t amy:${LAST_COMMIT} --label commit=${LAST_COMMIT} -f docker/Dockerfile .

Deployment

Deployment is presently done manually (vimming into file and updating version of amy image, then running docker compose up -d). However, this can be fully automated (and will be) in a production setting using Github Actions runner on VM. In short:

  1. Use ssh to enter machine
  2. Goto /data/amy-deployment
  3. Update tag in docker-compose.yml
  4. docker compose up -d

Presently, the test environment is running with DigitalOcean in Amsterdam.

Deploying changes to tags, curriculi, etch

Most of these changes are (intentionally) present within the management commands. Calling these management commands must be called from Amy's virtual environment.

In order to apply these changes to the existing env, do the following:

The name of the management command is the same as the filename, minus .py. You can also request python manage.py help to get a list of management commands.

Development

This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 101017536. The funding was awarded through the RDA (https://www.rd-alliance.org/) Open Call mechanism (https://eoscfuture-grants.eu/provider/research-data-alliance) based on evaluations of external, independent experts.