Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/catalyst/docker_moodle
- Owner: catalyst
- Created: 2018-05-10T07:17:25.000Z (over 6 years ago)
- Default Branch: 1804-psql
- Last Pushed: 2021-10-22T06:41:39.000Z (about 3 years ago)
- Last Synced: 2023-04-18T23:29:49.938Z (over 1 year ago)
- Language: Dockerfile
- Homepage:
- Size: 112 KB
- Stars: 14
- Watchers: 18
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```