Giter Club home page Giter Club logo

fedocker's Introduction

feDocker: v1.3.2

以下配置,基于docker Beta版(1.11.0), 简单配置一个Mac下,前端开发环境所需要的docker

配置内容

  • supervisor(用于启动多项应用)

  • nginx(默认指向/home/data)

  • ssh

  • vim (安装了基本的bundle包管理器和一个color-scheme包)

  • node && npm (包管理工具)

  • grunt(前端编译工具)

  • sass(css 预编译语言)

  • ruby(sass 需要ruby编译环境)

建立镜像

docker-compose build 

运行一个容器

docker-compose up -d
  • /Users/daben/work 表示宿主机的共享目录。

  • 暂时只能同步用户目录下的文件

  • /home/data为容器中的共享目录

  • 80端口为 nginx 代理使用

  • 22 端口为ssh连接使用

ssh连接进行深入操作

docker ps 

可以看到

e1dafad42ce9        fe_docker:v1.3.1    "/usr/bin/supervisor   27 minutes ago      Up 27 minutes       0.0.0.0:80->80/tcp, 0.0.0.0:2024->22/tcp   fe_container

####其中container22端口被随机对应了boot2docker32769端口

ssh [email protected] -p 2024

就可以进入我们新的container里面,进行进一步操作了。

常见问题整理

fedocker's People

Contributors

fyddaben avatar

Watchers

James Cloos avatar huhl 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.