Skip to content

jollopre/roadmap_dev_env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roadmap_dev_env

A docker environment to run roadmap project.

Build

$ git clone https://github.com/DMPRoadmap/roadmap.git
$ docker-compose build server

If you want to populate the db with the seeds data, please type:

$ docker-compose run --rm server rake db:setup

In contrast, if you already have a backup db file, please type the following commands:

$ docker-compose run --rm -v "<PATH_TO_YOUR_SQL_FILE>":/tmp/backup.sql server /bin/bash # Substitute <PATH_TO_YOUR_SQL_FILE> with the location of your backup file
$ rake db:drop
$ rake db:create
$ psql "dbname=${POSTGRES_DB} host=db user=${POSTGRES_USER} password=${POSTGRES_PASSWORD}" < /tmp/backup.sql
$ exit

Run

$ docker-compose up -d

Run Tests

In order to run ruby/rails tests, please type:

$ docker-compose run --rm server rake test

Stop

$ docker-compose down

Connect to rails console

$ docker-compose run --rm server rails c

About

A docker environment to run roadmap project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages