An open API service indexing awesome lists of open source software.

https://github.com/jollopre/roadmap_dev_env

A docker environment to run roadmap project
https://github.com/jollopre/roadmap_dev_env

docker docker-compose nodejs ruby ruby-on-rails

Last synced: 3 months ago
JSON representation

A docker environment to run roadmap project

Awesome Lists containing this project

README

          

# 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 "":/tmp/backup.sql server /bin/bash # Substitute 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
```