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

docker-compose #29

Closed
mark-cooper opened this issue Dec 10, 2015 · 4 comments
Closed

docker-compose #29

mark-cooper opened this issue Dec 10, 2015 · 4 comments

Comments

@mark-cooper
Copy link

Taking some baby steps here and wondering if there might be any interest / support for adding a docker-compose file to chullo? Using it would be entirely optional and not impact anyone who doesn't want to use it, but the primary advantage is being able to very quickly run (and destroy / recreate) the external server(s) for experimentation and testing.

If adopted this would be possible:

git clone [email protected]:Islandora-CLAW/chullo.git && cd chullo
composer install
docker-compose up -d # runs fedora and blazegraph in background, requires Docker and Docker compose
php examples/fedora.php
php examples/triplestore.php # no output because fcrepo-camel-webapp not setup (think that's needed to sync fedora and the triplestore?)
docker-compose logs # see what just happened
docker-compose stop && docker-compose rm -f # blow it all away ...

It makes it easy to look at chullo independent from CLAW and the full vagrant stack. I have two examples:

a) Include the Dockerfiles with chullo. Adds a couple of extra files, but no external image dependencies, the images will be built the first time docker-compose is run.

https://github.com/Islandora-CLAW/chullo/compare/master...mark-cooper:docker-compose-build?expand=1

b) Point at external images in docker-compose file. It's faster when first run as the images can be downloaded and doesn't require the dockerfiles with chullo, but obviously requires that they are maintained separately.

https://github.com/Islandora-CLAW/chullo/compare/master...mark-cooper:docker-compose-image?expand=1

If there is interest in this option I would recommend adding (contributing) docker-fcrepo4 and docker-blazegraph repositories to Islandora-CLAW, and building images at docker hub under an islandora claw account (so the commented out "image" values in the example docker-compose.yml file are what would actually be used in a pull request). They might then be useful in other contexts as well.

@ruebot
Copy link
Member

ruebot commented Dec 10, 2015

@mark-cooper definitely looks interesting. How about we talk about this as a group on the next Claw Call? If you're cool with that, feel free to add it to the agenda.

@DiegoPino
Copy link
Contributor

@mark-cooper, would be really cool! Please put this on the agenda and Thanks!

@mark-cooper
Copy link
Author

Great, that sounds good to me. Will add to next agenda, thx.

@mark-cooper
Copy link
Author

Hey all, I suggest closing this for now to await the devops work per agenda item 3, and see where things are after that: https://github.com/Islandora-CLAW/CLAW/wiki/January-13%2C-2016#minutes

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

No branches or pull requests

3 participants