Giter Site home page Giter Site logo

dockerfile's Introduction

centos_base

基于官方centos:centos6镜像,通过yum安装基础编译环境和常用工具。

-- yum install -y tar wget gcc gcc-c++ libxml2-devel zlib-devel bzip2-devel curl-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel openssl openssl-devel vim

-- rpm -ivh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm sed -i 's/^mirrorlist=https/mirrorlist=http/' /etc/yum.repos.d/epel.repo

-- yum install docker-io service docker start chkconfig docker on docker pull centos:centos6 docker images

docker build -t centos_base .
docker images
docker run --net=host -i -t centos_base /bin/bash

--

centos_develop-php

php开发环境,需要先创建centos_base基础镜像

  • nginx-1.5.7
  • php-5.4.40
  • yaf-2.3.3
  • phpredis-2.2.7
  • mongo-1.6.7

-- docker build -t centos_nginx . docker run --net=host -i -t -v /data/wwwroot:/data/www centos_nginx /data/start.sh

centos_develop-yaf

yaf开发环境,需要先创建centos_nginx基础镜像

-- docker build -t centos_yaf . docker run --net=host -i -t -v /data/wwwroot/github_yaf-phpframe/:/data/www centos_yaf /data/start.sh

centos_mysql

yaf开发环境,需要先创建centos_nginx基础镜像

-- docker build -t centos_mysql . docker run --net=host -i -t centos_mysql /data/start.sh

/usr/local/mysql/bin/mysql -uroot -pxiaocai
show databases;

--

dockerfile's People

Contributors

cmxiaocai avatar

Watchers

 avatar  avatar

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.