Coder Social home page Coder Social logo

dockerfile-ansible-workspace's Introduction

What is Ansible Workspace?

No longer maintained

Author tryed to separate Ansible Runner and Ansible workspace following micro service design to simplify each container when develop batch task like deployment job. However, author felt only a quite few benifit:

  • Workspace have to run sshd service
    • When follow "One process per container" principle, workspace container can't do anything else.
  • Building single container for batch task is not so complicated
    • Author thought that the task building container will be easy. however, setting up dependency of batch task is not so complicated task.
  • The convenience of local complate outweighs that of having remote
    • More important than task building container is to spend much time when test because all resource is remote from Ansible container so not only Ansible but test process also have to access to remote host to check the result of playbook.

Ansible is also useful for creating something like batch process and little bit more maintainable than other setup tools like Shell Script. Ansible Runner is suitable for this purpose. However, when it needs to set up more tools, Ansible Runner image is based on CentOS, and there are already much tools and libraries in image. It's better to isolate image between Ansible and workspace.

This container is intended to work with The image is purposefully light-weight and only containing the dependencies necessary to be connected by Ansible. It’s intended to be overridden.

How to use this image

---
version: '3.2'
services:
  operator:
    container_name: operator
    depends_on:
      - workdir
    environment:
      RUNNER_PLAYBOOK: playbook.yml
      ANSIBLE_SSH_PASS: p@ssW0rd
    image: ansible/ansible-runner

  workdir:
    container_name: workdir
    environment:
      SSH_PASSWORD: p@ssW0rd
    image: futureys/ansible-workspace

dockerfile-ansible-workspace's People

Contributors

yukihiko-shinoda avatar

Watchers

 avatar

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.