GithubHelp home page GithubHelp logo

chusiang / ansible-managed-node.dockerfile Goto Github PK

View Code? Open in Web Editor NEW
31.0 2.0 14.0 49 KB

Building the Docker image with run the OpenSSH daemon and Python for Ansible.

Home Page: https://hub.docker.com/r/chusiang/ansible-managed-node/

License: MIT License

Shell 1.81% Makefile 4.67% Dockerfile 93.53%
ansible dockerfile docker

ansible-managed-node.dockerfile's Introduction

Docker image: Ansible Managed Node

Docker Hub microbadger

A Docker image of run the OpenSSH daemon and Python for Ansible.

WARNING: This docker image can be access with ssh by chusiang/ansible-jupyter image. Do not use it on the Production Environment, please.

Supported tags and respective Dockerfile links

Account

root user:

  • username: root
  • password: root

sudo user:

  • username: docker
  • password: docker

Build image

  1. Get this project.

    $ git clone https://github.com/chusiang/ansible-managed-node.dockerfile.git
    
  2. Go to workspace.

    $ cd ansible-managed-node.dockerfile/
    
  3. Bunild the image.

    $ docker build -t chusiang/ansible-managed-node .
    

Run container

  1. Get image.

    $ docker pull chusiang/ansible-managed-node
    
  2. Run the container with daemon mode.

    $ docker run --name ansible-managed-node -P -d chusiang/ansible-managed-node
    be8a15b9d4da5d24610c1fc738cb13086f01101e90f94640360d8d84892de772
    
  3. Check container process.

    $ docker ps
    CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS              PORTS                     NAMES
    be8a15b9d4da        chusiang/ansible-managed-node   "/usr/sbin/sshd -D"   9 minutes ago      Up 9 minutes       0.0.0.0:32777->22/tcp      ansible-managed-node
    
  4. Enter container with command line.

    $ docker exec -it ansible-managed-node bash
    bash-4.3#
    

Enjoy it !

History

2018

  • 06/18 Add new images of alpine-3.7, ubuntu-18.04, enable the sudo no password in each images. Stop automated build images of alpine-3.4, debian-7, ubuntu-14.04.

License

Copyright (c) chusiang from 2016-2017 under the MIT license.

ansible-managed-node.dockerfile's People

Contributors

chengweichen avatar chusiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ansible-managed-node.dockerfile's Issues

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.