/docker-atlantis-ansible

docker for atlantis with ansible

Primary LanguageDockerfileApache License 2.0Apache-2.0

atlantis-ansible-dokcer

CircleCI

docker image for atlantis docker with ansible support.

Base Image

https://hub.docker.com/r/runatlantis/atlantis/

Base Dockerfile

https://github.com/runatlantis/atlantis/blob/master/Dockerfile

Components

  • atlantis
  • ansible
  • azure-cli
  • kubergrunt

atlantis and ngrok docker-compose sample.

boot atlantis and ngrok. atlantis contains ansible and aws credential. Also azure credential will be pass via env_file atlantis.env.

host directory tree

├── ansible
├── atlantis.env
├── atlantis.yaml
├── terraform // both aws and azure supported
└── docker-compose.yml

docker-compose sample

version: "2"
services:
  atlantis:
    container_name: atlantis
    restart: always
    image: "guitarrapc/atlantis-ansible-dokcer"
    volumes:
      - ~/.ssh:/home/atlantis/.ssh
      - ~/.aws:/home/atlantis/.aws
      - ~/.ansible:/home/atlantis/.ansible
      - ${PWD}/ansible/playbooks/ansible.cfg:/home/atlantis/.ansible.cfg:rw
    ports:
      - 4141:4141
    env_file:
      - ./atlantis.env
  ngrok:
    container_name: ngrok
    image: "wernight/ngrok"
    volumes:
      - ~/.ngrok2/:/home/ngrok/.ngrok2/
    ports:
      - "0.0.0.0:4040:4040"
    links:
      - atlantis
    environment:
      - NGROK_PORT=atlantis:4141