Skip to content
This repository was archived by the owner on Oct 15, 2018. It is now read-only.

Prevent database from meeting it's maker after container has been destroyed. #63

Merged
aleksijohansson merged 2 commits intomasterfrom
feature/persistentDatabaseData
May 30, 2016
Merged

Prevent database from meeting it's maker after container has been destroyed. #63
aleksijohansson merged 2 commits intomasterfrom
feature/persistentDatabaseData

Conversation

@artursv
Copy link
Copy Markdown
Contributor

@artursv artursv commented May 27, 2016

Docker containers are super easy to get rid of. Which is nice unless you have a database container where your current work-in progress is stored. It's way too easy to hit wundertools down on the Friday afternoon and watch un-exported Drupal data disappear.

We could use Docker volumes to solve this. Mysql data will be stored in volume db-data which stays intact even after container is destroyed.

I'm not 100% sure for how long these volumes are stored. My guess - until the end of time because wundertools create some volumes that are used for storing some log files i think and those still haven't gone anywhere from my system since I started testing the tool.

@artursv artursv changed the title Prevent database from meeting it's maker after destroying container. Prevent database from meeting it's maker after container has been destroyed. May 27, 2016
@aleksijohansson
Copy link
Copy Markdown

@artursv I think this is a very welcome improvement. I was just thinking about the same issue. Testing this now.

@aleksijohansson
Copy link
Copy Markdown

@artursv This seems to work perfectly fine for me.

@aleksijohansson aleksijohansson merged commit c068eef into master May 30, 2016
@james-nesbitt
Copy link
Copy Markdown
Contributor

What we need to do is get some idea from users what good behaviours should be. I will cross-reference with Ilari and Janne about good behaviours on the server.

FYI: most other organizations are considering the volume route, as it allows easier upgrade of db servers, and keeps the db service generic (like our php and www services.) I am considering using distributed db images, but will not push the idea if it is only me.

@james-nesbitt
Copy link
Copy Markdown
Contributor

@artursv volumes are persistant until you run "docker-compose down -v" or manually remove them using "docker volume"

@james-nesbitt
Copy link
Copy Markdown
Contributor

Incidentally, the milestone to which this PR was attached is closed really. I will create a new one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants