tmrts / boilr

:zap: boilerplate template manager that generates files or directories from template repositories
Apache License 2.0
1.73k stars 118 forks source link

Docker support #20

Open schmunk42 opened 8 years ago

schmunk42 commented 8 years ago

Hi @tmrts,

I just noticed you starred https://github.com/schmunk42/docker-boilr Let me know if you'd like to integrate Docker support for boilr.

The above repo is a bit experimental at the moment, especially regarding host-volumes. But any feedback is very welcome!

tmrts commented 8 years ago

Hey Tobias,

Thanks for your work. I'd be interested/happy to help you with integrating your work to boilr. I'm not sure about the aliasing, but other than that it's very cool!

Let me know if you want to integrate it or I can try doing it

tmrts commented 8 years ago

@schmunk42 any updates on this? let me know if you need help or if you don't have time to work on this. In the meanwhile feel free to edit the wiki to point to docker-boilr

schmunk42 commented 8 years ago

Sorry for my late reply.

The first thing I noticed when building the image was, that I need to mount two volumes from my host, since I think it makes no sense to create files with boilr just in the container.

How would you call boilr running with Docker?

An alternative could also be to use docker-compose for that, a yml file could look like:

version: '2'
services:
  boilr:
    image: schmunk42/boilr
    volumes:
      - ~/.config/boilr:/root/.config/boilr
      - ./:/project
schmunk42 commented 7 years ago

I am using boilr since a while with this alias

alias boilr="docker run -it --rm -v ${HOME}/.config/boilr:/root/.config/boilr -v ${PWD}:/project --workdir /project schmunk42/boilr"

Should be interchangeable with native usage.