Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a bunch of tools to backup/restore/init-db + dedicated docker service #153

Merged
merged 3 commits into from
Dec 10, 2015
Merged

Add a bunch of tools to backup/restore/init-db + dedicated docker service #153

merged 3 commits into from
Dec 10, 2015

Conversation

DavidBruant
Copy link
Contributor

But please review.
This implements #107 (comment)
See Readme first.

This is only the dev part of the tooling. Adding the prod counter-part right now.

"prestart": "npm run build-prod",
"serve-dev": "docker-compose -f compose-dev.yml up --force-recreate",
"serve-dev": "docker-compose -p 6element -f compose-dev.yml up --force-recreate",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forcing the project name for more reliable container names.

npm run serve-dev # or npm run serve-prod in production environment

# then in another window
docker exec 6element_backup_1 tools/init-database.js
docker-compose -f docker-compose-load-db.yml up
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why can't we do the same way as initdb docker exec 6element_backup_1 tools/load-database.js

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step should eventually disappear since it's about transfering a JSON file to the database. Eventually, the data will just be in the database with ways to make incremental changes.

@DavidBruant DavidBruant changed the title [DO NOT MERGE] Add a bunch of tools to backup/restore/init-db + dedicated docker service Add a bunch of tools to backup/restore/init-db + dedicated docker service Dec 10, 2015
@DavidBruant
Copy link
Contributor Author

Merge after @vallettea review and tests

DavidBruant added a commit that referenced this pull request Dec 10, 2015
Add a bunch of tools to backup/restore/init-db + dedicated docker service
@DavidBruant DavidBruant merged commit 7a35862 into anthill:master Dec 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants