Coder Social home page Coder Social logo

base-curbix's Introduction

base-curbix

This is the base image to be used for all other images in the curbformation environment.

It currently runs Ubuntu 14.04 LTS and provides the follow services exposed as docker containers to be linked against:

  • statsd (statsd-docker repo) for librato metrics service
  • logging (logging-docker repo) for syslog service
  • consul (consul-docker repo) for autodiscovery service
  • aws-startup-utils (aws-startup-utils-docker repo) utility scripts for ec2 server startup actions

See the following repos for images built from this:

  • ntp-curbix
  • nat-curbix

build

The image is build using a combination of shell, ansible and pulled all together by packer. The build goes as so:

  1. Install ansible via inline shell in the packer definition aws.json
  2. Next install the following ansible role repos which are installed by doing bin/install_roles.sh
  • base-ansible-role installs and configures ssh and sudoers as well as common utility packages
  • ntp-ansible-role configures ntp to use our environment ntp servers
  • python3-ansible-role makes sure python3 is installed and any packages
  • logging-ansible-role makes sure syslog-ng is setup to send logs to the docker container and log rotate
  1. Restart the image so that the aufs package can finish installing. This is necessary since the devicemapper fs for docker is buggy and will occasionally fail to start
  2. Lastly install docker via the https://get.docker.com/ubuntu/ script and docker pull the images in the previous section.

startup process

  • All ec2 servers will perform the same startup process which will be defined in the cloudformation-templates repo and the instances userdata.
  • In the base-ansible-role repo there is a startup.sh script which is triggered by cloudinit/userdata on all ec2 instances
  • The startup script requires a NR_TOKEN (new relic) an LOGGLY_TOKEN to be passed in via cloudformation.
  • The startup script will then configure and start the newrelic agent
  • The startup script will then start the pulled docker containers with necessary settings

base-curbix's People

Watchers

Elana avatar Jeff Pharr avatar Andrey Lomaka avatar  avatar Ryan Naughton avatar Han Xu avatar James Cloos avatar Mitch Miller avatar  avatar Will Brady avatar Ziad Mallah avatar Scott Coleman avatar  avatar Josh Wenk avatar  avatar Todor Iliev avatar Artem Kuznetsov avatar Vladimir avatar Juan M. Lemus avatar  avatar  avatar Shubhanan Deshpande avatar  avatar Anna Artyushkevich avatar  avatar Josh Whittemore avatar  avatar Stephen Garlick avatar  avatar Jay Kraly avatar Mu Wang avatar Mikalai Batsilau avatar David Little avatar  avatar  avatar  avatar Aaron Brackett avatar  avatar  avatar  avatar Julia avatar  avatar Nestor Guzman avatar Slava Samoliuk avatar  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.