Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

Reference for Container.yml #108

Open
darkn3rd opened this issue Jul 5, 2016 · 3 comments
Open

Reference for Container.yml #108

darkn3rd opened this issue Jul 5, 2016 · 3 comments
Assignees
Milestone

Comments

@darkn3rd
Copy link

darkn3rd commented Jul 5, 2016

Are there any documentation reference for the tokens that can be used in the container reference? I'm not sure how to convert my Dockerfile into a container.yml. The current reference documentation just documents that commands. Using the example as my go-to reference for now.

@mablae
Copy link

mablae commented Jul 25, 2016

Hello @darkn3rd ,

you do not directly convert your Dockerfile to container.yml.

The way doing this would be docker build to create an Container Image from the Dockerfile and refer to that "Container Image" in the container.yml which is almost equal to the docker-compose.yml format. Then you would run ansible-container to provision a (new) container with this image as a base plus your main.yml playbook applied.

@darkn3rd
Copy link
Author

darkn3rd commented Jul 28, 2016

I was actually finally able to convert my Dockerfile to container.yml and main.yml. I had to move functionality that I specified in the Dockerfile to container.yml, and specific package install and other configurations moved to main.yml.

I had some initial confusion as the docs are sparse, ran into bugs (expected, but caused the most problems). As a newbie with basic Ansible, Docker Engine, and Docker-Compose knowledge, it was rough to get started. I cannot imagine someone missing such pre-reqs.

I was thinking it would be nice to have mini-tutorials like Docker-Compose has with Django, Flask, Rails, WordPress, which would help getting off the ground.

As for the reference, I was wondering what has been tested to work and not work in different combinations. Perhaps a test scripts? Also, there's key/value pairs outside of compose added to container.yml

@j00bar
Copy link
Contributor

j00bar commented Aug 2, 2016

The docs do definitely need continual upkeep and love, and the ansible-container-examples repo needs some additional case studies. Contributions welcome until House or I can get to penning some on our own.

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

5 participants