Expertiza Rails environment, part of docker-compose. -Zhewei
699
If you think it is useful, please star this repo. Happy coding! XD
Expertiza is a web application where students can submit and peer-review learning objects (articles, code, websites, etc). It is used in select courses at NC State and by professors at several other colleges and universities.
Docker Engine is supported on Linux, Cloud, Windows, and OS X. Please follow the corresponding docker installation instruction and docker-compose installation instruction.
sudo usermod -aG docker $USER.Download Expertiza Scrubbed Database from this link. And unzip the file.
Fork Expertiza master or beta branch (for course project), git clone Expertiza code base. And run the command bash ./setup.sh
docker-compose.yml.example and Modifydevops/docker/docker-compose.yml.example to ./docker-compose.yml.docker-compose.yml (/your/database/folder/path) to the directory where you store Expertiza Scrubbed Database.MYSQL_ROOT_PASSWORD (Line 27 in docker-compose.yml).config/database.ymlModify host and password based on database service name (Line 21 in docker-compose.yml) and MYSQL_ROOT_PASSWORD (Line 27 in docker-compose.yml).
Run docker-compose up &. Please wait for MySQL to setup (2-3 minutes), then you should be able to access Expertiza via 0.0.0.0:3000 on the host machine.
docker exec -it [container_id] RAILS_ENV=development rake db:migrate.docker ps and replace the [container_id] in above command to current container id of winbobob/expertiza:ruby-2.2.7 image.instructor6, password password;student5432, password password.
-You can find more usernames in Users table, and all passwords are password.docker images
docker ps
docker exec -it [container_id] bash
docker stop [container_id]
docker-compose up
docker-compose down
docker-compose logs
If you have any questions, please post on Piazza!
Content type
Image
Digest
Size
466 MB
Last updated
about 9 years ago
docker pull winbobob/expertiza