Giter VIP home page Giter VIP logo

Comments (3)

mablae avatar mablae commented on August 20, 2024

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.

from ansible-container.

darkn3rd avatar darkn3rd commented on August 20, 2024

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

from ansible-container.

j00bar avatar j00bar commented on August 20, 2024

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.

from ansible-container.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.