Sign inSign up

bcardiff/themis

By bcardiff

Updated over 3 years ago

themis docker image

Image
0

3.1K

bcardiff/themis repository overview

Themis

Creative Commons License

Themis by Brian J. Cardiff is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Based on a work at https://github.com/bcardiff/themis.

Docker development environment

Install docker and docker-compose.

Run:

$ ./dev-setup.sh
$ docker-compose up

Open http://localhost:3000.

First time

Register a user from the login form in the web.

$ docker-compose exec app rails console
   > u = User.first
   > u.admin = true
   > u.save!
   > exit

Reload the web page.

Mailing

Open http://localhost:3080 to see the emails sent from the app during development.

Running specs

To run specs $ docker-compose exec app rspec.

A selenium can be accessed via vnc at localhost:5901 (password: secret).

When restoring a backup, you can reset user password doing

Restore backups
$ docker-compose exec app rake db:drop db:create
$ docker-compose exec db bash
   # mysql -u root themis_development < ./path/to/backup.sql
$ docker-compose exec app /bin/bash -c "[email protected] PASSWORD=newpassword rake app:reset_pwd"

Note: If the backup.sql is stored in this project folder, then /src/backup.sql is the path to use.

Tag summary

Content type

Image

Digest

Size

337.9 MB

Last updated

over 7 years ago

docker pull bcardiff/themis