Coder Social home page Coder Social logo

mip-docker's Introduction

MIP-Docker

文件结构

  1. Dockerfile 为 docker 容器的配置文件
  2. init.sh 为 docker 容器启动时候的默认执行文件,是一些服务启动脚本
  3. mip 为控制容器的脚本, 支持 start, install, update 命令来控制容器

requirement

  1. 安装 docker, 推荐使用 daocloud 急速安装
  2. 安装 git, 公钥关联 github 账户

quick start

  1. 把以下的代码 git clone 到 ~/MIP 下,包括 mongo 的配置文件
    mkdir ~/MIP
    git clone [email protected]:zuston/MIP-Searching.git
    git clone [email protected]:zuston/MIP-FrontEnd.git
    git clone [email protected]:zuston/MIP-Block.git
  2. 回到 MIP-Docker 目录下,执行 ./mip install
  3. 执行 ./mip start
  4. 如果 java 代码更新过后,则需要 ./mip update

以下可省略不看,如果 容器内部有问题,可进入 container 里面查看哦!

代码需要挂载外部数据卷

MIP-Searching MIP-FrontEnd MIP-Block /opt/mongo.properties

生成 images : 

sudo docker build -t zuston/mipdocker:0.01 .

启动 container :

sudo docker run -p 127.0.0.1:80:80 -p 8083:8083 -p 6379:6379 -it -v ~/MIP:/MIP-CODE --name mipCore0.0.1 zuston/mipdocker:0.01 /bin/bash

mip-docker's People

Contributors

zuston avatar

Watchers

 avatar  avatar  avatar

Forkers

mesakiiyui

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.