Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/catalyst/docker_moodle

A Moodle development environment. Maintained via https://github.com/catalyst/docker_moodle_builder
https://github.com/catalyst/docker_moodle

Last synced: 3 days ago
JSON representation

A Moodle development environment. Maintained via https://github.com/catalyst/docker_moodle_builder

Awesome Lists containing this project

README

        

# docker_moodle

## Requirements

- Docker
- Docker-compose

## Usage

1. Clone this repository

```
git clone [email protected]:catalyst/docker_moodle.git docker_moodle
```

2. Clone Moodle code into siteroot

```
cd docker_moodle
git clone [email protected]:moodle/moodle.git siteroot
```

3. Copy site config across

```
cp moodle-config siteroot/config.php
```

4. Start containers

```
docker-compose up
```

## Utility Commands

Use the following command to enter the bash shell of each container.
Replaces using the docker exec function.

To change container names, change name in yaml file and control file.

Enter web container:

```
./control web
```

Enter db container:

```
./control db
```

Enter test database container:

```
./control testdb
```

Restore db locally:

```
./control dbrestore
```

## Running Tests

To setup the testing environment run:

```
./control web
composer install
php admin/tool/phpunit/cli/init.php
```

To run tests:

```
./control web
./vendor/bin/phpunit
```