Comments (3)
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.
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.
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)
- Destroy command deletes all similar images of other projects too HOT 7
- pip install of ansible-container fails if using pip version 10.0.1 HOT 6
- Environment Variables are not being passed as build arguments to the docker engine HOT 1
- build fails with pip 10 HOT 10
- Not able to Install Ansible-Container in Google Cloud HOT 1
- AttributeError: 'tuple' object has no attribute 'id' HOT 4
- Ansible container not seeing vault encrypted vars in vars_files HOT 9
- ImportError while importing test module HOT 1
- ruamel.yaml should be lockdown better HOT 2
- Ubuntu Bionic/Artful not in PREBAKED_DISTROS HOT 4
- TypeError: ordereddict is not JSON serializable HOT 2
- Build gets stuck (non-deterministic behavior) HOT 2
- "The role was not found" and "Failed to load container.yml" errors HOT 1
- Allow companies to adapt ansible-container in their workflow until official release done HOT 1
- ansible-container build: Conductor container fails when using user namespaces HOT 3
- OSError: [Errno 2] No such file or directory : '/root/ansible-container-env/lib/python2.7/site-packages/ansible_container-0.9.3rc0-py2.7.egg/contain er/docker/files/setup.py' HOT 6
- Create Dockerfile from Ansible roles HOT 1
- sa-ansible-container from PyPI fails to install using python 3 HOT 4
- sudo pip install is bad HOT 1
- Segmentation fault installing apt packages HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-container.