Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TO get sqlsrv full-text woking on the normal docker containers:
- - Follow https://github.com/moodlehq/moodle-docker instructions
- - Once all the containers are running, and before installing any moodle, we are going to modify the mssql one
- docker ps
- docker exec -it DB_CONTAINERID /bin/bash
- - Now you are in a shell in the container.
- apt-get update
- apt-get install -y curl
- curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
- curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list | tee /etc/apt/sources.list.d/mssql-server.list
- apt-get update
- apt-get install -y mssql-server-fts
- /opt/mssql/bin/mssql-conf set sqlagent.enabled true
- ======= SAVE THE CONTAINER =========
- (using another shell session)
- docker ps
- docker commit DB_CONTAINERID moodlehq/moodle-db-mssql
- ====================================
- (back to the shell in the container)
- exit
- - now you're back in your computer, out from the docker container
- (restart the whole compose)
- bin/moodle-docker-compose down
- bin/moodle-docker-compose up -d
- Install the moodle site:
- https://github.com/moodlehq/moodle-docker#use-containers-for-manual-testing
- Verify http://localhost:8000 works for you and shows the "Docker" site installed.
- Create this script in your moodle base dir and run it via web:
- echo "<?php require('config.php'); var_dump(\$DB->is_fulltext_search_supported());" > "$MOODLE_DOCKER_WWWROOT/isfull.php"
- Try it, must return true
- http://localhost:8000/isfull.php
- Go testing!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement