This is a Docker build recipe for Tao Testing - an online testing and certification platform.
The easiest way to fire this up is to follow these instructions:
- Install Docker and Docker Compose
- Modify the variables inside setup.sh and .env according to your needs and host parameters
- Execute
sudo ./setup.sh
from the command line - Open http://your-host and follow installation wizard
- Use pgdb as database host name
- Use TAO_POSTGRES_DB value from setup.sh as database name
- Select the Overwrite option
Note: OPCache is enabled in the php.ini.
- Install Docker Compose
- Run
docker-compose up
- Postgres container username=
postgres
and password=example
as declared in the docker-compose.yml - Determine the ip address of your postgres container and create the tao database:
createdb -h ip.address.of.pgcontainer -U postgres dbname
(use passwordexample
when prompted) - Connect to http://localhost:8002 and follow the TAO installation wizard
- For the database hostname you should use
pgdb
as outlined in the docker-compose.yml - Use the
dbname
specified in yourcreatedb
- Select the Overwrite option.
For the postgresql connection, the user is 'postgres' and password is 'example' - you can change the password in the docker-compose.yml.