Sign inSign up

filipporossi/mad-control

By filipporossi

•Updated over 8 years ago

Utility container to control MAD/Ansible deploys. To be (improperly) used as lightweight VM.

Image
1

259

filipporossi/mad-control repository overview

⁠Requirements

The container Linux user (mad) is created by default with UID=1000 and GID=1000, these values must be the same as the host user that you use. If they aren't you should build the image from the Dockerfile.

⁠RUN

Adapt the command below with these parameters:

  • replace /home/host_user/.ssh with the path for host .ssh folder
  • replace /home/host_user/ansible with the path of your choice of a work directory on host for git repositories
  • replace /home/host_user/.ssh/known_hosts with the path for host known_hosts file
  • replace Name Surname with yours
  • replace [email protected] with yours
$ docker run --name mad-control -v /home/host_user/.ssh:/home/mad/.ssh:z,ro -v /home/host_user/ansible:/home/mad/ansible:z -v /home/host_user/.ssh/known_hosts:/home/mad/.ssh/known_hosts:z -e git_user_fullname="Name Surname" -e git_user_email="[email protected]" -u mad -it filipporossi/mad-control

 

⁠Suggestions

You could create an alias in your environment to quickly start and attach to the container after it was created with the first run:

alias madcontrol='sudo docker start mad-control; sudo docker attach mad-control'

Tag summary

Content type

Image

Digest

Size

122.8 MB

Last updated

over 8 years ago

docker pull filipporossi/mad-control