Skip to content

CentOS Workspace Docker (Base-Workspace Container) for multi purpose applications

License

Notifications You must be signed in to change notification settings

zeroc0d3lab/centos-base-workspace

Repository files navigation

CentOS Workspace Docker (Base-Workspace Container)

Build Status GitHub issues GitHub forks GitHub stars GitHub license

This docker image includes:

Features:

  • bash (+ themes)
  • oh-my-zsh (+ themes)
  • tmux (+ themes)
  • vim (+ plugins with vundle & themes)
  • rbenv / rvm
    • gem test unit (rspec, serverspec)
    • gem docker-api
    • gem sqlite3, mongoid, sequel, apktools
    • gem mysql2 (run: yum install -y mysql-devel)
    • gem pg, sequel_pg (run: yum install -y postgresql-libs postgresql-devel)
    • gem rubocop
    • others
  • npm
    • npm test unit (ChaiJS, TV4, Newman)
  • js package manager
    • yarn
    • bower
    • grunt
    • gulp
    • yeoman
  • composer (dependency manager for PHP)

Notes:

  • Run vim then
    :PluginInstall
    
  • Update plugin vim (vundle)
    :PluginUpdate
    
  • Via terminal
    vim +PluginInstall +q
    vim +PluginUpdate +q
    

Docker Compose

  • Copy env-example to .env
  • Build & running
    docker-compose build && docker-compose up
    
  • Force recreate container
    docker-compose build && docker-compose up --force-recreate base-workspace
    
  • Running container only
    docker-compose up
    

Environments

You can run docker-compose for different environment with selected containers

  • Copy env.sh.example to env.sh
  • Change to execute script
    chmod a+x env.sh
    
  • Change environment in env.sh file
    ENV="development"            # (use: "development" or "production" as selected environment)
    CONTAINER_PRODUCTION="..."   # (selected containers will be run in production environment)
    CONTAINER_DEVELOPMENT="..."  # (selected containers will be run in development environment)
    
  • Running script
    ./env.sh
    

License

GNU General Public License v2