Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Easy development docker setup #116

Open
kelunik opened this issue Jul 15, 2016 · 1 comment
Open

Easy development docker setup #116

kelunik opened this issue Jul 15, 2016 · 1 comment

Comments

@kelunik
Copy link
Contributor

kelunik commented Jul 15, 2016

We need an easy way to develop Airship inside Docker. Currently I need three steps per change:

  • docker-compose rm -vf
  • docker-compose build airship
  • docker-compose up

I already have docker-compose aliased to dc, but it's not the commands that's annoying, but a build time. The time is low if composer dependencies are already installed on the host, but it's still quite long.

This is especially important if you're developing Motifs, because you often check whether things are right. Also the above process involves setting it up every time.

We should probably have Docker volumes for all persistent files and not delete the containers + their volumes. If these are persistent, we also don't have to delete the database volume.

@bartekgn
Copy link
Contributor

bartekgn commented Dec 8, 2016

Im not using docker-compose, but this should work:
docker cp airship:/var/www /home/xxx/airship-www (copy airship from existing container)

In docker-composer add to airship section:

volumes:
     - /home/xxx/airship-www:/var/www

And after

docker-compose rm -vf
docker-compose build airship
docker-compose up

you should be able to edit files directly without rebuilding environment

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

No branches or pull requests

3 participants