Skip to content

Files

Latest commit

1e9558e · Nov 14, 2017

History

History

application

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 17, 2017
Nov 14, 2017
Oct 27, 2017
Oct 27, 2017
Oct 27, 2017
Oct 27, 2017
Oct 31, 2017
Oct 17, 2017
Oct 27, 2017
Oct 27, 2017
Oct 27, 2017
Oct 29, 2017
Oct 27, 2017
Nov 14, 2017

README.md

CentOS Application Lite Edition Docker (Application-Lite Container)

Build Status GitHub issues GitHub forks GitHub stars GitHub license

This docker image includes:

Features:

  • bash (+ themes)
  • oh-my-zsh (+ themes)
  • tmux (+ themes)

Configuration:

  • Generate ssh key for your access:
    ssh-keygen -t rsa
    
    or
    ssh-keygen -t rsa -b 4096 -C "zeroc0d3.team@gmail.com" -f $HOME/.ssh/id_rsa
    
  • Add your id_rsa.pub to environment (.env) file to run with docker-compose, or
  • Add your id_rsa.pub to SSH_AUTHORIZED_KEYS in Dockerfile to run with docker build -t [docker-image-name] [path-dockerfile-folder]
  • Rebuild your docker container
    docker-compose build && docker-compose up --force-recreate
    
  • Check your IP Address container
    • Show running container docker
      docker ps
      
    • Show the IP Address container
      docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' [container_name_or_id]
      
    • Inspect container
      docker inspect [name_container]
      
      (eg: application-lite_1)
  • Access ssh
    • Run:
      ssh docker@[ip_address_container]
      
    • Superuser access (root):
      sudo su
      
      (password: docker)

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 application-lite
    
  • 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