tecris / dev-environment-linux

Ansible to setup linux dev environment (java, maven, docker, etc)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ubuntu 16.04 development environment built with Ansible & Vagrant

Bare Ubuntu

Docker - way

Vagrant - way

Bare Ubuntu


  • one liner:
    • $ ./bareUbuntu.sh

With Docker


  • This is just to test a clean/fresh install.
    • $ docker build --no-cache -t casadocker/dev-linux-base base
    • $ docker build --no-cache -t casadocker/dev-linux user-customized

With Vagrant


  • If mother nature decides I have to work on a Windows machine that has VirtualBox

Pre-requisites:

Build vagrant box:

  1. Build base vagrant box, see base/buildVagrant.sh
  2. Add user to base image, see user-customized/buildVagrant.sh

Start box/image

  1. $ cd demo
  2. $ vagrant up

Environment variables

# ls -l /opt/
  total 8
  drwxr-xr-x 6 root   root   4096 Nov 21 17:18 apache-maven-3.8.6
  lrwxrwxrwx 1 root   root     12 Nov 21 17:13 jdk -> jdk-17.0.5+8
  drwxr-xr-x 9 tecris tecris 4096 Oct 19 16:56 jdk-17.0.5+8
  lrwxrwxrwx 1 root   root     18 Nov 21 17:18 maven -> apache-maven-3.8.6

  # cat /etc/profile.d/java.sh
  export JAVA_HOME=/opt/jdk
  PATH=${JAVA_HOME}/bin:${PATH}

  # cat /etc/profile.d/maven.sh
  export MAVEN_HOME=/opt/maven
  PATH=${MAVEN_HOME}/bin:${PATH}

About

Ansible to setup linux dev environment (java, maven, docker, etc)


Languages

Language:Shell 42.6%Language:Vim Script 32.6%Language:Dockerfile 24.9%