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

[Workaround] Docker-in-Docker for mulled containers #59

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

almahmoud
Copy link
Member

This is not meant to be merged, but a useful workaround until we figure out how to automate the process of finding combinations of tools not in biocontainers.
Having a docker-in-docker container will allow the job containers to build mulled containers on-the-fly and use them when the images are not found in biocontainers.

Copy of #58 made as a Draft PR.

@almahmoud almahmoud changed the title Dind added [Workaround] Docker-in-Docker for mulled containers Oct 17, 2019
@nuwang
Copy link
Member

nuwang commented Dec 18, 2019

Just noting that this also needs the <build_mulled /> option in container_resolvers_conf.xml, as it has been removed now: 313cef6

@nuwang
Copy link
Member

nuwang commented Apr 24, 2020

@almahmoud We need to specify the DOCKER_HOST env var for this right? As otherwise, the mulled build process won't know that it should be using the dind container? Where should that be done?

@almahmoud
Copy link
Member Author

I followed this originally: https://medium.com/hootsuite-engineering/building-docker-images-inside-kubernetes-42c6af855f25 so I think the missing piece is:

    env:
    - name: DOCKER_HOST
      value: tcp://localhost:2375

I am not sure how/if the Kubernetes-Docker runtime divorce is going to affect this still working though

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

Successfully merging this pull request may close these issues.

2 participants