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
- Host: GitHub
- URL: https://github.com/jollopre/roadmap_dev_env
- Owner: jollopre
- License: mit
- Created: 2018-03-21T14:13:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-01T11:23:56.000Z (almost 8 years ago)
- Last Synced: 2025-10-10T19:46:28.562Z (9 months ago)
- Topics: docker, docker-compose, nodejs, ruby, ruby-on-rails
- Language: Ruby
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```