This repository contains deployment notes and releases
We assume the user is familiar with, and have following installed:
- docker
- docker-machine
- docker-compose
- Create a VM with docker-machine
docker-machine create \ --driver=digitalocean \ --digitalocean-access-token=[access token] \ --digitalocean-size=512mb \ --digitalocean-region=fra1 \ --digitalocean-private-networking=true \ --digitalocean-image=ubuntu-16-04-x64 \ openteach - Use the new machine:
eval $(docker-machine env openteach) - create docker-compose.yml from following template:
openteach: image: kadirahq/meteord:base restart: always ports: + "80:80" links: + mongo environment: + MONGO_URL=mongodb://mongo/meteor-db + ROOT_URL=http://[YOUR DOMAIN] + BUNDLE_URL=https://raw.githubusercontent.com/openteach/release/master/releases/[RELEASE].tar.gz + METEOR_SETTINGS=[CONTENT OF SETTINGS.JSON] mongo: image: mongo:latest - Setup by issuing
docker-compose up -d
Settings.json: remove all white space characters before inserting the string.
If you want to release cutting edge from the main repository, you can create a release:
- Run
meteor build --architecture=os.linux.x86_64 ./in the library - Move the newly created file,
openteach.tar.gz, to a public location on the web - Update the docker compose file
- Do a
compose up -d.