Skip to content
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.

Workflow advice; saving containers, updating yml, etc. #4

Closed
mccrodp opened this issue Feb 17, 2016 · 3 comments
Closed

Workflow advice; saving containers, updating yml, etc. #4

mccrodp opened this issue Feb 17, 2016 · 3 comments

Comments

@mccrodp
Copy link

mccrodp commented Feb 17, 2016

I have a few dev envs I'm moving from an old laptop over to a new one with Docker etc., hopefully all using this repo.

I will presumably use a separate instance of this repo per project. How do you advise saving out current state of a container to an image and updating the docker yml file.

I created a docker image of the mysql container and then update the yml to use it instead of the mysql:5.7 image, however it didn't seem to preserve the database I had and running docker compose up just created a fresh instance of what seemed to be mysql:5.7 with the name of my new image.

Is there something "Docker Compose" specific needed here?

@mccrodp
Copy link
Author

mccrodp commented Feb 18, 2016

@RobLoach - I tried docker-compose build after creating an image from the mysql container and updating the docker_compose.yml and still it creates a container with no drupal database.

Bit of confusion on this one unfortunately. At the moment I have to keep importing the DB into the container:

docker exec -i dockercompose_mysql_1 mysql -udrupal -pdrupal drupal < /dev/docker-compose/databases/db_import.sql

@RobLoach
Copy link
Owner

For importing? We should add some tools in there, Drupal Console, Drush, etc. Once you have docker-compose up running, it should be something like:

docker-compose run web drush status

@RobLoach
Copy link
Owner

RobLoach commented Dec 7, 2016

Suggest trying out https://github.com/Wodby/docker4drupal

@RobLoach RobLoach closed this as completed Dec 7, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants