Giter Club home page Giter Club logo

mantle's Introduction

Mantle

Travis Docker Pulls

The Dockerfile for development environment with LEMP Stack.

Requirements

Includes

It is based on Alpine Linux and includes middleware of the following:

  • Supervisor : 3.2.0
  • Nginx : 1.10
  • PHP : 7.0
  • MySQL(MariaDB) : 10.1
  • Memcached : 1.4
  • Redis : 3.2

Basic Usage

$ docker pull hivelocityinc/mantle
$ docker run -d \
  --name mantle \
  -p 80:80 \
  -v $PWD/{your_app_dir}:/var/www/html/{app_name}
  hivelocityinc/mantle

If you want to use the PHP5, please pull image with hivelocityinc/mantle:php5.

Configuration

You can change the config of middleware when you set environment value of the following:

ENV Key Default Value Description
NGINX_WORKER_PROCESSES 1 Ningx: worker processes
NGINX_SERVER_NAME localhost Ningx: server name
NGINX_DOCUMENT_ROOT /usr/share/nginx/html Nginx: document root path
MYSQL_ROOT_PASSWORD root MySQL: root user's password
MYSQL_DATABASE mantle MySQL: database name
MYSQL_USER mantle MySQL: database user
MYSQL_PASSWORD mantle MySQL: database password for $MYSQL_USER
MEMCACHED_MEMUSAGE 64 Memcached: memory usage size
MEMCACHED_MAXCONN 1024 Memcached: maximum number of concurrent connections

Import DB data

If you want to import databases data to container, to add /initdb.d/schema or /initdb.d/sheeds volume.

# Example
$ docker run -d \
  -v $PWD/{your_schema_dir}:/initdb.d/schema \
  -v $PWD/{your_seed_dir}:/initdb.d/sheeds \
  hivelocityinc/mantle

After script

If you want to run shell script to container, to add /after_run volume.

# Example
$ docker run -d \
  -v $PWD/script/after_run.sh:/after_run/after_run.sh \
  hivelocityinc/mantle

Develop

Firstly, you have to install a gem package for Serverspec.

$ bundle install --path vendor/bundle

Build image from Dockerfile

$ sh ./script/docker.sh build

Run container

$ sh ./script/docker.sh run

Clean up to image and container

$ sh ./script/docker.sh clean

Testing

$ sh ./script/docker.sh test

mantle's People

Contributors

komeda avatar y-harikita avatar yu-harikita avatar

Watchers

 avatar  avatar  avatar  avatar

mantle's Issues

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.