Tamnza is a platform in which, teachers can create quizzes and students can take quizzes.
374
Maintained by:
The Resulam Team
Where to get help:
the Docker Community Forums, the Docker Community Slack, or Stack Overflow
Where to file issues:
https://github.com/pythonbrad/tamnza/issues
Image updates:
official-images repo's tamnza file (history)
Tamnza is a quiz application in which, teachers can create quizzes and students can sign up and take quizzes related to their interests.
Inspired from How to Implement Multiple User Types with Django.
For more information and related downloads for Tamnza and other Resulam products, please visit resulam.com.
docker network create tamnzanet
mysql server instanceStarting a MySQL instance is simple:
$ docker run --name mysql -v tamnza-mysql-data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=secret -e MYSQL_DATABASE=tamnza --network tamnzanet -d mysql:5.7
More information about the MySQL docker image in Official MySQL image
tamnza server instanceStarting a Tamnza instance is simple:
$ docker run --name tamnza -e MYSQL_HOST=mysql -e MYSQL_USERNAME=root -e MYSQL_PASSWORD=secret -e MYSQL_DATABASE=tamnza --network tamnzane -d tamnza:latest
docker-composeExample docker-compose.yml for tamnza:
version: "3.8"
services:
app:
image: pythonbrad/tamnza
ports:
- 80:80
environment:
MYSQL_ROOT_HOST: mysql
MYSQL_USERNAME: root
MYSQL_PASSWORD: secret
MYSQL_DATABASE: tamnza
depends_on:
- mysql
mysql:
image: mysql:5.7
volumes:
- tamnza-mysql-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: tamnza
volumes:
tamnza-mysql-data:
Run docker-compose up, wait for it to initialize completely, and visit http://swarm-ip:80, http://localhost:80, or http://host-ip:80 (as appropriate).
The docker exec command allows you to run commands inside a Docker container. The following command line will give you a bash shell inside your tamnza container:
To initialize the database, use this command.
$ docker exec -it tamnza php ./tamnza/initdb.php
The log is available through Docker's container log:
$ docker logs tamnza
TODO
Content type
Image
Digest
sha256:ee3a40db7…
Size
31.4 MB
Last updated
about 4 years ago
docker pull pythonbrad/tamnza