Skip to content

Latest commit

 

History

History

Dev System Configuration

Engineers value documentation that explains how to get a development workstation configured quickly. It is human nature to customize and change things - we do this frequently, but sometimes we need to get back to first base. This document will help to get you there.

##Installation and Configuration Information

An attempt has been made to pre-stage downloads so several steps can be done in parallel

###Base OS Installed

  1. VirtualBox, TWO network interfaces 1. bridge external (assumed to be on eth0) 1. host-only on 192.168.124.x (assumed to be on eth1)
  2. Setup an .ssh keypair using rssh-keygen
  3. Optional Items that we find handy if you are developing on Windows using VMs behind corporate firewalls 1. Squid Proxy (to cache packages)
    1. ubuntu: sudo apt-get install squid squid-common 1. CNTLM proxy:
    2. ubuntu: sudo apt-get install cntlm
    3. make sure that you allow NON local hosts to use the proxy (in =/etc/cntlm.conf= set gateway yes)! Containers are not "local" and require your CNTLM proxy to act as a gateway. 1. SAMBA share
    4. ubuntu: sudo apt-get install samba 1. Passwordless sudo: sudo sed -ie "s/%sudo\tALL=(ALL:ALL) ALL/%sudo ALL=(ALL) NOPASSWD: ALL/g" /etc/sudoers
  4. apt-get install git

###Position Boot Assets, see [docker/Docker-TLDR] 1. Copy the ISOs that you want for nodes to $HOME/.cache/opencrowbar/tftpboot/isos

###Checkout Code

  1. get git 1. ubuntu: sudo apt-get install git
  2. get the code: git clone https://github.com/opencrowbar/core 1. if you want to commit, please review [../contributing.md]

###Build Sledgehammer (do 1 time, but takes a while)

  1. prep for sledgehammer requirements: 1. ubuntu: sudo apt-get install rpm rpm2cpio
  2. from core, tools/build_sledgehammer.sh 1. warning: this may take multiple attempts to complete to downloads. Keep trying.

###Setup Docker Admin Node

  1. follow steps in [docker/docker-admin.md]